forked from mirrors/nixpkgs
pkgs/development/interpreters/lua-5: overriding CFLAGS on the make command-line breaks the build
svn path=/nixpkgs/trunk/; revision=23367
This commit is contained in:
parent
8170f3b73b
commit
08244152cc
|
@ -8,13 +8,19 @@ stdenv.mkDerivation {
|
||||||
sha256 = "0fmgk100ficm1jbm4ga9xy484v4cm89wsdfckdybb9gjx8jy4f5h";
|
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
|
buildFlags = if stdenv.isLinux then "linux" else
|
||||||
if stdenv.isDarwin then "macosx" else
|
if stdenv.isDarwin then "macosx" else
|
||||||
if stdenv.isFreeBSD then "freebsd" else
|
if stdenv.isFreeBSD then "freebsd" else
|
||||||
if stdenv.isBSD then "bsd" else
|
if stdenv.isBSD then "bsd" else
|
||||||
"posix"
|
"posix";
|
||||||
;
|
|
||||||
installFlags = "install INSTALL_TOP=\${out}";
|
installFlags = "install INSTALL_TOP=\${out}";
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
sed -i -e "s@/usr/local@$out@" etc/lua.pc
|
sed -i -e "s@/usr/local@$out@" etc/lua.pc
|
||||||
|
|
Loading…
Reference in a new issue