diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2010-09-07 12:56:49 +0000 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2010-09-07 12:56:49 +0000 |
commit | d9f435106c84cfa69a2e944be30b7ced26e1aedf (patch) | |
tree | 7c09476ec08eeb7b4c57267d8ae25bcfed8678fe | |
parent | 08a4373125a1307a72b15a59847af55ccc482cfa (diff) |
lua5: re-enable -fPIC for lua5
svn path=/nixpkgs/trunk/; revision=23668
-rw-r--r-- | pkgs/development/interpreters/lua-5/default.nix | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/pkgs/development/interpreters/lua-5/default.nix b/pkgs/development/interpreters/lua-5/default.nix index c1651e806b2c..160f28270035 100644 --- a/pkgs/development/interpreters/lua-5/default.nix +++ b/pkgs/development/interpreters/lua-5/default.nix @@ -8,14 +8,7 @@ stdenv.mkDerivation { sha256 = "0fmgk100ficm1jbm4ga9xy484v4cm89wsdfckdybb9gjx8jy4f5h"; }; - # Disabled: -fPIC cannot be passed this way, because setting CFLAGS - # breaks lua's internal mechanism for passing flags from the - # top-level Makefile to src/Makefile. The desired effect - # could probably be achieved by modifying the Makefile with - # sed(1), etc. I didn't add that, though, because it's not - # clear to me why -fPIC is required in the first place. - # - # makeFlags = "CFLAGS=-fPIC"; + NIX_CFLAGS_COMPILE = "-fPIC"; buildFlags = if stdenv.isLinux then "linux" else if stdenv.isDarwin then "macosx" else if stdenv.isFreeBSD then "freebsd" else |