Author: rob
Date: Tue Sep 7 12:56:49 2010
New Revision: 23668
URL: https://svn.nixos.org/websvn/nix/?rev=23668&sc=1
Log:
lua5: re-enable -fPIC for lua5
Modified:
nixpkgs/trunk/pkgs/development/interpreters/lua-5/default.nix
Modified: nixpkgs/trunk/pkgs/development/interpreters/lua-5/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/development/interpreters/lua-5/default.nix Tue Sep
7 12:52:30 2010 (r23667)
+++ nixpkgs/trunk/pkgs/development/interpreters/lua-5/default.nix Tue Sep
7 12:56:49 2010 (r23668)
@@ -8,14 +8,7 @@
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
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits