aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-03-31 12:02:57 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-03-31 12:02:57 +0000
commite237133c3c8fe0176c43cec0b5b8216c95036f93 (patch)
treee8fd7be80fb7fd00b7855e1098b74c604e10d73e /configure
parent1709507ef4819c173e8e68ced6585390dae84dda (diff)
downloaddnsfunnel-e237133c3c8fe0176c43cec0b5b8216c95036f93.tar.gz
Add support for disabling rpath; prepare for 0.0.3.2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 3bfa226..5908a43 100755
--- a/configure
+++ b/configure
@@ -45,6 +45,7 @@ Optional features:
--disable-allstatic do not prefer linking against static libraries [enabled]
--enable-static-libc make entirely static binaries [disabled]
--disable-all-pic do not build executables or static libs as PIC [enabled]
+ --disable-rpath do not embed RPATH in libraries [enabled]
--enable-pkgconfig Build and install .pc files for pkg-config [disabled]
--enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled]
--enable-absolute-paths hardcode absolute BINDIR/foobar paths in binaries [disabled]
@@ -151,6 +152,7 @@ shlibext=so
shared=false
static=true
allpic=true
+rpath=true
slashpackage=false
abspath=false
pcw=false
@@ -199,6 +201,8 @@ for arg ; do
--disable-static-libc|--enable-static-libc=no) evenmorestatic=false ;;
--enable-all-pic|--enable-all-pic=yes) allpic=true ;;
--disable-all-pic|--enable-all-pic=no) allpic=false ;;
+ --enable-rpath|--enable-rpath=yes) rpath=true ;;
+ --disable-rpath|--enable-rpath=no) rpath=false ;;
--enable-pkgconfig|--enable-pkgconfig=yes) pcw=true ;;
--disable-pkgconfig|--enable-pkgconfig=no) pcw=false ;;
--enable-slashpackage=*) sproot=${arg#*=} ; slashpackage=true ; ;;
@@ -502,6 +506,11 @@ if $shared ; then
else
echo "DO_SHARED :="
fi
+if $rpath ; then
+ echo "LDFLAGS_RPATH := -Wl,-rpath=${dynlibdir}"
+else
+ echo "LDFLAGS_RPATH :="
+fi
if $pcw ; then
echo "DO_PKGCONFIG := 1"
else