Skip to content

Commit

Permalink
build: Ubuntu defaults to --as-needed
Browse files Browse the repository at this point in the history
  • Loading branch information
wferi committed Nov 20, 2017
1 parent 4704082 commit 48bc1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ esac

AC_DEFUN([KNET_PKG_SONAME],[
AC_MSG_CHECKING([for soname of $1])
$CC -shared -nostdlib -o dummy.so $$1_LIBS
$CC -shared -nostdlib -o dummy.so -Wl,--no-as-needed $$1_LIBS
# Choosing the first SONAME is a best guess here:
knet_pkg_soname=`$OBJDUMP -p dummy.so | $SED -n '/^Dynamic Section:$/,/^[^ ]/{s/ *NEEDED *//p;}' | head -n1`
rm dummy.so
Expand Down

0 comments on commit 48bc1df

Please sign in to comment.