[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RPATH on 64-bit arches
From: |
Glenn Morris |
Subject: |
Re: RPATH on 64-bit arches |
Date: |
Fri, 25 Apr 2008 19:28:30 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Chip Coldwell wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=253872
>
> Basically, the problem is that the current definition of the autoconf
> macro _AC_PATH_X_XMKMF causes the emacs build process to insert an
> RPATH into the 64-bit binary. Personally, I feel this is a bug in
> autoconf, so perhaps this is the wrong forum to bring it up. FWIW, I
> have this patch to fix it:
Can't we add a workaround for this in configure.in (see below)?
Patching configure is a nuisance, and almost guaranteed to get lost
after it gets regenerated a few times.
This doesn't seem to cause any real harm (?), so is probably not worth
fixing in Emacs 22.
*** configure.in 23 Apr 2008 05:55:32 -0000 1.524
--- configure.in 25 Apr 2008 22:19:19 -0000
***************
*** 1339,1344 ****
--- 1339,1353 ----
window_system=x11
fi
+ ## Workaround for bug in autoconf <= 2.62.
+ ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
+ ## No need to do anything special for these standard directories.
+ if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
+
+ x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e
's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||' -e 's|::||'`
+
+ fi
+
if test "${x_libraries}" != NONE; then
if test -n "${x_libraries}"; then
LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`