Merge branch 'pj/maint-ldflags'
* pj/maint-ldflags: configure clobbers LDFLAGS
This commit is contained in:
@ -127,7 +127,7 @@ else
|
|||||||
SAVE_LDFLAGS="${LDFLAGS}"
|
SAVE_LDFLAGS="${LDFLAGS}"
|
||||||
LDFLAGS="${SAVE_LDFLAGS} -Wl,-rpath,/"
|
LDFLAGS="${SAVE_LDFLAGS} -Wl,-rpath,/"
|
||||||
AC_LINK_IFELSE(AC_LANG_PROGRAM([], []), [ld_wl_rpath=yes], [ld_wl_rpath=no])
|
AC_LINK_IFELSE(AC_LANG_PROGRAM([], []), [ld_wl_rpath=yes], [ld_wl_rpath=no])
|
||||||
LDFLAGS="${SAVE_LD_FLAGS}"
|
LDFLAGS="${SAVE_LDFLAGS}"
|
||||||
])
|
])
|
||||||
if test "$ld_wl_rpath" = "yes"; then
|
if test "$ld_wl_rpath" = "yes"; then
|
||||||
AC_SUBST(CC_LD_DYNPATH, [-Wl,-rpath,])
|
AC_SUBST(CC_LD_DYNPATH, [-Wl,-rpath,])
|
||||||
@ -136,7 +136,7 @@ else
|
|||||||
SAVE_LDFLAGS="${LDFLAGS}"
|
SAVE_LDFLAGS="${LDFLAGS}"
|
||||||
LDFLAGS="${SAVE_LDFLAGS} -rpath /"
|
LDFLAGS="${SAVE_LDFLAGS} -rpath /"
|
||||||
AC_LINK_IFELSE(AC_LANG_PROGRAM([], []), [ld_rpath=yes], [ld_rpath=no])
|
AC_LINK_IFELSE(AC_LANG_PROGRAM([], []), [ld_rpath=yes], [ld_rpath=no])
|
||||||
LDFLAGS="${SAVE_LD_FLAGS}"
|
LDFLAGS="${SAVE_LDFLAGS}"
|
||||||
])
|
])
|
||||||
if test "$ld_rpath" = "yes"; then
|
if test "$ld_rpath" = "yes"; then
|
||||||
AC_SUBST(CC_LD_DYNPATH, [-rpath])
|
AC_SUBST(CC_LD_DYNPATH, [-rpath])
|
||||||
|
Reference in New Issue
Block a user