1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Revert "Build: Add an rpath of $(LIBDIR) to binary targets."

This reverts commit 3a0f781352.

This needs more thought.

Setting RPATH like this does not work on all supported
platforms (Linux, Solaris and AIX seem to work, HP-UX,
Tru64 and MacOS don't, MacOS doesn't even seem to have
an rpath at all prior to 10.4).

What is more, rpath also has some bad effects (when
updating libraries, e.g.), so it should not be set
unconditionally.

I will come up with a confiugure mechanism to control this.

For now, just use the LDFLAGS environment variable if
you want to use an rpath.

Sorry for any inconveniences.

Michael
This commit is contained in:
Michael Adam 2008-03-06 17:49:07 +01:00
parent c0bc09854f
commit 6850dc242b

View File

@ -42,8 +42,8 @@ CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
EXEEXT=@EXEEXT@
AR=@AR@
LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@ -Wl,-R,$(LIBDIR)
LDFLAGS=@PIE_LDFLAGS@ @LDFLAGS@ -Wl,-R,$(LIBDIR)
LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@
LDFLAGS=@PIE_LDFLAGS@ @LDFLAGS@
WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
AWK=@AWK@