diff options
author | Dan Peebles <thetypesaretoobig@gmail.com> | 2015-02-08 19:15:09 -0500 |
---|---|---|
committer | Dan Peebles <thetypesaretoobig@gmail.com> | 2015-02-08 19:15:09 -0500 |
commit | d8ad39d2e60886fc4a427b171c95d3bcd116170a (patch) | |
tree | b60bc01b78122e953f5b8db9e4332d14ded779ce /pkgs/applications/editors | |
parent | 063c901d6cc3d074b7e08245b65e241673096602 (diff) |
Purification in preparation for pure-darwin merge (shouldsn't hurt anything in the meantime)
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/emacs-24/builder.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-24/builder.sh b/pkgs/applications/editors/emacs-24/builder.sh index 5b86f98d61c22..984a61df6f3b8 100644 --- a/pkgs/applications/editors/emacs-24/builder.sh +++ b/pkgs/applications/editors/emacs-24/builder.sh @@ -5,6 +5,10 @@ source $stdenv/setup # *our* versions, not the ones found in the system, as it would do by default. # On other platforms, this appears to be unnecessary. preConfigure() { + for i in Makefile.in ./src/Makefile.in ./lib-src/Makefile.in ./leim/Makefile.in; do + substituteInPlace $i --replace /bin/pwd pwd + done + case "${system}" in x86_64-linux) glibclibdir=lib64 ;; i686-linux) glibclibdir=lib ;; @@ -23,7 +27,9 @@ preConfigure() { --replace /usr/lib/crti.o $libc/${glibclibdir}/crti.o \ --replace /usr/lib/crtn.o $libc/${glibclibdir}/crtn.o done +} +preInstall () { for i in Makefile.in ./src/Makefile.in ./lib-src/Makefile.in ./leim/Makefile.in; do substituteInPlace $i --replace /bin/pwd pwd done |