unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Chip Coldwell <coldwell@redhat.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: RPATH on 64-bit arches
Date: Fri, 25 Apr 2008 19:28:30 -0400	[thread overview]
Message-ID: <cf3ap9zf8h.fsf@fencepost.gnu.org> (raw)
In-Reply-To: alpine.LRH.1.00.0804211128440.13399@bogart.boston.redhat.com

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"`




  reply	other threads:[~2008-04-25 23:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-21 15:30 RPATH on 64-bit arches Chip Coldwell
2008-04-25 23:28 ` Glenn Morris [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-05-05 19:18 Brad Walker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf3ap9zf8h.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=coldwell@redhat.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).