Project

General

Profile

Actions

Bug #5697

closed

Wrong flag for enabling PIE executables with clang

Added by drbrain (Eric Hodel) over 12 years ago. Updated over 12 years ago.

Status:
Closed
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

Actions #1

Updated by kosaki (Motohiro KOSAKI) over 12 years ago

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

r33926.

Updated by kosaki (Motohiro KOSAKI) over 12 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) over 12 years ago

  • Status changed from Open to Closed

r33928 and r33929.

Updated by nobu (Nobuyoshi Nakada) over 12 years ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0