Issue #5697 has been updated by Motohiro KOSAKI.

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.

----------------------------------------
Bug #5697: Wrong flag for enabling PIE executables with clang
http://redmine.ruby-lang.org/issues/5697

Author: Eric Hodel
Status: Open
Priority: Normal
Assignee: Nobuyoshi Nakada
Category: core
Target version: 
ruby -v: trunk


=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



-- 
http://redmine.ruby-lang.org