diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-31 11:26:30 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-31 11:26:30 +0000 |
| commit | 522cb49ba4a72d00b99e6a89908d6dcd3d5c4417 (patch) | |
| tree | b55bbeee7dca251ea89406c3054d6926f6e234a3 | |
| parent | 01be2813c9d478a5f7ee9add2edd5ed05b4e602e (diff) | |
| download | mdevd-522cb49ba4a72d00b99e6a89908d6dcd3d5c4417.tar.gz | |
Add support for disabling rpath; update deps
| -rw-r--r-- | CONTRIBUTING | 2 | ||||
| -rw-r--r-- | INSTALL | 6 | ||||
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | NEWS | 2 | ||||
| -rwxr-xr-x | configure | 9 | ||||
| -rw-r--r-- | doc/index.html | 6 | ||||
| -rw-r--r-- | doc/upgrade.html | 3 | ||||
| -rwxr-xr-x | tools/configure.template | 9 |
8 files changed, 30 insertions, 9 deletions
diff --git a/CONTRIBUTING b/CONTRIBUTING index 3173998..bc10b3c 100644 --- a/CONTRIBUTING +++ b/CONTRIBUTING @@ -10,7 +10,7 @@ * I, the contributor, am the copyright owner of these changes * I submit these changes according to the project's license -with no additionam requirements +with no additional requirements * I understand these changes in full and will be able to respond to review comments. @@ -6,9 +6,9 @@ Build Instructions - A Linux-based system with a standard C development environment - GNU make version 3.81 or later - - skalibs version 2.14.6.0 or later: https://skarnet.org/software/skalibs/ - - optional: nsss version 0.2.1.1 or later: https://skarnet.org/software/nsss/ - - optional: execline version 2.9.8.1 or later: https://skarnet.org/software/execline/ + - skalibs version 2.15.0.0 or later: https://skarnet.org/software/skalibs/ + - optional: nsss version 0.2.1.2 or later: https://skarnet.org/software/nsss/ + - optional: execline version 2.9.8.2 or later: https://skarnet.org/software/execline/ This software is Linux-specific. It will run on a Linux kernel, version 2.6.10 or later. @@ -188,7 +188,7 @@ lib%.a.xyzzy: exec $(RANLIB) $@ lib%.so.xyzzy: - exec $(CC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,$(patsubst lib%.so.xyzzy,lib%.so.$(version_M),$@) -Wl,-rpath=$(dynlibdir) $^ $(EXTRA_LIBS) $(LDLIBS) + exec $(CC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,$(patsubst lib%.so.xyzzy,lib%.so.$(version_M),$@) $(LDFLAGS_RPATH) $^ $(EXTRA_LIBS) $(LDLIBS) -lskarnet: $(error Unable to link against skalibs. Check that you are using the correct --with-lib or --with-dynlib options; see ./configure --help) @@ -4,6 +4,8 @@ In 0.1.8.2 ---------- - Bugfixes. + - Support for disabling RPATH at configure time. + - Adaptation to skalibs-2.15.0.0. In 0.1.8.1 @@ -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] @@ -152,6 +153,7 @@ shlibext=so shared=false static=true allpic=true +rpath=true slashpackage=false abspath=false pcw=false @@ -200,6 +202,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 ; ;; @@ -504,6 +508,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 diff --git a/doc/index.html b/doc/index.html index 1a89772..4042799 100644 --- a/doc/index.html +++ b/doc/index.html @@ -102,16 +102,16 @@ and does not pull in any unnecessary code. </li> The Linux kernel must be 2.6.10 or later. </li> <li> GNU make, version 3.81 or later </li> <li> <a href="//skarnet.org/software/skalibs/">skalibs</a> version -2.14.6.0 or later. It's a build-time requirement. It's also a run-time +2.15.0.0 or later. It's a build-time requirement. It's also a run-time requirement if you link against the shared version of the skalibs library. </li> <li> Optionally: <a href="//skarnet.org/software/execline/">nsss</a> -version 0.2.1.1 or later. It's a build-time and run-time requirement, if +version 0.2.1.2 or later. It's a build-time and run-time requirement, if you use the <tt>--enable-nsss</tt> option to configure; but you would only do that if you're replacing nsswitch on your whole system, and most people are not. </li> <li> Optionally: <a href="//skarnet.org/software/execline/">execline</a> -version 2.9.8.1 or later. It's a only a run-time requirement, and only +version 2.9.8.2 or later. It's a only a run-time requirement, and only if your <tt>mdev.conf</tt> file contains <tt>+</tt>, <tt>-</tt> or <tt>&</tt> command directives. </li> </ul> diff --git a/doc/upgrade.html b/doc/upgrade.html index 97390ea..f449a33 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -21,8 +21,9 @@ <h2> in 0.1.8.2 </h2> <ul> + <li> Support for disabling RPATH at compile time. </li> <li> <a href="//skarnet.org/software/skalibs/">skalibs</a> -dependency bumped to 2.14.6.0. </li> +dependency bumped to 2.15.0.0. </li> </ul> <h2> in 0.1.8.1 </h2> diff --git a/tools/configure.template b/tools/configure.template index ac8ac86..b693f5c 100755 --- a/tools/configure.template +++ b/tools/configure.template @@ -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 |
