Project

General

Profile

Bug #5697

Wrong flag for enabling PIE executables with clang

Added by drbrain (Eric Hodel) almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
trunk
Backport:
[ruby-core:41438]

Description

=begin
When linking the ruby executable with clang I get the following warning:

$ make
[…]
linking ruby20
clang: warning: argument unused during compilation: '-pie'
[…]

In the Makefile ((|XLDFLAGS|)) should be (({-Wl,-pie})) not (({-pie}))
=end

History

#1

Updated by kosaki (Motohiro KOSAKI) almost 8 years ago

  • Status changed from Open to Closed
  • Assignee set to nobu (Nobuyoshi Nakada)

r33926.

Updated by kosaki (Motohiro KOSAKI) almost 8 years ago

  • Status changed from Closed to Open

Reopend. Because r33926 was reverted. gcc need -pie and clang need -Wl,-pie. So, we need more clever trick.

Updated by nobu (Nobuyoshi Nakada) almost 8 years ago

  • Status changed from Open to Closed

r33928 and r33929.

Updated by nobu (Nobuyoshi Nakada) almost 8 years ago

  • % Done changed from 0 to 100

Also available in: Atom PDF