aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-05-26 19:13:12 +0000
committerLaurent Bercot <ska@appnovation.com>2025-05-26 19:13:12 +0000
commit5d4ed0f6abc41b7907bc762a43498e67545923f4 (patch)
tree60593c4e33ea0eb698fa9035279e184858757358
parent35455ce407b20a40d58f48b1d1ad61cd1be6241a (diff)
downloadutmps-5d4ed0f6abc41b7907bc762a43498e67545923f4.tar.gz
Support shlibs on MacOS
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--README.macos3
-rwxr-xr-xconfigure6
-rwxr-xr-xtools/configure.template6
3 files changed, 6 insertions, 9 deletions
diff --git a/README.macos b/README.macos
deleted file mode 100644
index 64e0742..0000000
--- a/README.macos
+++ /dev/null
@@ -1,3 +0,0 @@
- This package will compile and run on Darwin (MacOS X), but the building of
-shared libraries is not supported.
- Make sure you use the --disable-shared option to configure.
diff --git a/configure b/configure
index e19483d..b871bfb 100755
--- a/configure
+++ b/configure
@@ -203,9 +203,9 @@ for arg ; do
--disable-shared|--enable-shared=no) shared=false ;;
--enable-static|--enable-static=yes) static=true ;;
--disable-static|--enable-static=no) static=false ;;
- --enable-allstatic|--enable-allstatic=yes) allstatic=true ;;
- --disable-allstatic|--enable-allstatic=no) allstatic=false ; evenmorestatic=false ;;
- --enable-static-libc|--enable-static-libc=yes) allstatic=true ; evenmorestatic=true ;;
+ --enable-allstatic|--enable-allstatic=yes) static=true ; allstatic=true ;;
+ --disable-allstatic|--enable-allstatic=no) allstatic=false ; evenmorestatic=false ; shared=true ;;
+ --enable-static-libc|--enable-static-libc=yes) static=true ; allstatic=true ; evenmorestatic=true ;;
--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 ;;
diff --git a/tools/configure.template b/tools/configure.template
index 20c8516..db8f59a 100755
--- a/tools/configure.template
+++ b/tools/configure.template
@@ -193,9 +193,9 @@ for arg ; do
--disable-shared|--enable-shared=no) shared=false ;;
--enable-static|--enable-static=yes) static=true ;;
--disable-static|--enable-static=no) static=false ;;
- --enable-allstatic|--enable-allstatic=yes) allstatic=true ;;
- --disable-allstatic|--enable-allstatic=no) allstatic=false ; evenmorestatic=false ;;
- --enable-static-libc|--enable-static-libc=yes) allstatic=true ; evenmorestatic=true ;;
+ --enable-allstatic|--enable-allstatic=yes) static=true ; allstatic=true ;;
+ --disable-allstatic|--enable-allstatic=no) allstatic=false ; evenmorestatic=false ; shared=true ;;
+ --enable-static-libc|--enable-static-libc=yes) static=true ; allstatic=true ; evenmorestatic=true ;;
--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 ;;