Skip to content

Commit a6e84b4

Browse files
author
common
committed
configure - fix compiling with gcc 4.6
- gcc 4.6 rejects -R, -> gcc: error: unrecognized option '-R' -> checking command to parse /usr/bin/nm -B output from gcc object... failed therefore global_pipe_symbol is empty, which kills the compile -> libtool: link: /usr/bin/nm -B .libs/a.o .libs/b.o | | /bin/sed 's/.* //' | sort | uniq > .libs/libX.exp -> ../libtool: eval: line 1090: syntax error near unexpected token `|'
1 parent f7dca27 commit a6e84b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ dnl Check for some target-specific stuff
2121
case "$host" in
2222
*-*-freebsd*)
2323
CPPFLAGS="$CPPFLAGS -I/usr/local/include -I/usr/src/contrib/file/"
24-
LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
24+
LDFLAGS="$LDFLAGS -L/usr/local/lib -Wl,-rpath,/usr/local/lib"
2525
;;
2626
*-*-linux*)
2727
CPPFLAGS="$CPPFLAGS -D _GNU_SOURCE -I/usr/local/include"
28-
LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
28+
LDFLAGS="$LDFLAGS -L/usr/local/lib -Wl,-rpath,/usr/local/lib"
2929
;;
3030
*-*-darwin*)
3131
CPPFLAGS="$CPPFLAGS -I/opt/local/include"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy