summary refs log tree commit diff
path: root/pkgs/development/interpreters/lua-5/default.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-08-23 15:20:49 +0000
committerPeter Simons <simons@cryp.to>2010-08-23 15:20:49 +0000
commit08244152cc516789ca741cd0dc795c5455d2a12f (patch)
tree0c603becb14ea95372124368793178f820464481 /pkgs/development/interpreters/lua-5/default.nix
parent8170f3b73bd5a8c9bde7c0d5a04a52486f65d526 (diff)
downloadnixlib-08244152cc516789ca741cd0dc795c5455d2a12f.tar
nixlib-08244152cc516789ca741cd0dc795c5455d2a12f.tar.gz
nixlib-08244152cc516789ca741cd0dc795c5455d2a12f.tar.bz2
nixlib-08244152cc516789ca741cd0dc795c5455d2a12f.tar.lz
nixlib-08244152cc516789ca741cd0dc795c5455d2a12f.tar.xz
nixlib-08244152cc516789ca741cd0dc795c5455d2a12f.tar.zst
nixlib-08244152cc516789ca741cd0dc795c5455d2a12f.zip
pkgs/development/interpreters/lua-5: overriding CFLAGS on the make command-line breaks the build
svn path=/nixpkgs/trunk/; revision=23367
Diffstat (limited to 'pkgs/development/interpreters/lua-5/default.nix')
-rw-r--r--pkgs/development/interpreters/lua-5/default.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/interpreters/lua-5/default.nix b/pkgs/development/interpreters/lua-5/default.nix
index 578245c35e1c..c1651e806b2c 100644
--- a/pkgs/development/interpreters/lua-5/default.nix
+++ b/pkgs/development/interpreters/lua-5/default.nix
@@ -8,13 +8,19 @@ stdenv.mkDerivation {
     sha256 = "0fmgk100ficm1jbm4ga9xy484v4cm89wsdfckdybb9gjx8jy4f5h";
   };
 
-  makeFlags = "CFLAGS=-fPIC";
+  # 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";
   buildFlags = if stdenv.isLinux then "linux" else
 	       if stdenv.isDarwin then "macosx" else
 	       if stdenv.isFreeBSD then "freebsd" else
 	       if stdenv.isBSD then "bsd" else
-	       "posix"
-	       ;
+	       "posix";
   installFlags = "install INSTALL_TOP=\${out}";
   postInstall = ''
     sed -i -e "s@/usr/local@$out@" etc/lua.pc