From: Motohiro KOSAKI Date: 2011-12-02T13:13:22+09:00 Subject: [ruby-core:41449] [ruby-trunk - Bug #5697][Open] Wrong flag for enabling PIE executables with clang 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