mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
emacs-23: hacky fix to libXaw linker errors on MacOS X
When building Emacs on MacOS X, the configure script believes that libXaw is available and tries to link it (even when, in fact, libXaw is not available). To work around that problem, we make Xaw support mandatory on MacOS X. svn path=/nixpkgs/trunk/; revision=17610
This commit is contained in:
parent
1570ccf3cf
commit
49afefdb19
@ -15,6 +15,7 @@ assert dbusSupport -> dbus != null;
|
|||||||
assert xaw3dSupport -> Xaw3d != null;
|
assert xaw3dSupport -> Xaw3d != null;
|
||||||
assert gtkGUI -> pkgconfig != null && gtk != null;
|
assert gtkGUI -> pkgconfig != null && gtk != null;
|
||||||
assert xftSupport -> libXft != null && libpng != null; # libpng = probably a bug
|
assert xftSupport -> libXft != null && libpng != null; # libpng = probably a bug
|
||||||
|
assert stdenv.system == "i686-darwin" -> xawSupport; # fails to link otherwise
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "emacs-23.1";
|
name = "emacs-23.1";
|
||||||
|
@ -6631,7 +6631,7 @@ let
|
|||||||
libpng libjpeg libungif libtiff texinfo dbus;
|
libpng libjpeg libungif libtiff texinfo dbus;
|
||||||
inherit (xlibs) libXaw libXpm libXft;
|
inherit (xlibs) libXaw libXpm libXft;
|
||||||
inherit (gtkLibs) gtk;
|
inherit (gtkLibs) gtk;
|
||||||
xawSupport = getPkgConfig "emacs" "xawSupport" false;
|
xawSupport = system == "i686-darwin" || getPkgConfig "emacs" "xawSupport" false;
|
||||||
xaw3dSupport = getPkgConfig "emacs" "xaw3dSupport" false;
|
xaw3dSupport = getPkgConfig "emacs" "xaw3dSupport" false;
|
||||||
gtkGUI = getPkgConfig "emacs" "gtkSupport" true;
|
gtkGUI = getPkgConfig "emacs" "gtkSupport" true;
|
||||||
xftSupport = getPkgConfig "emacs" "xftSupport" true;
|
xftSupport = getPkgConfig "emacs" "xftSupport" true;
|
||||||
|
Loading…
Reference in New Issue
Block a user