2022-06-08 01:39:32 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Tim Schumacher <timschumi@gmx.de>
|
|
|
|
Date: Wed, 8 Jun 2022 00:30:22 +0200
|
|
|
|
Subject: [PATCH] Add SerenityOS support to the shared library scripts
|
|
|
|
|
|
|
|
This allows us to have properly named library symlinks.
|
|
|
|
---
|
|
|
|
support/shlib-install | 4 ++--
|
|
|
|
support/shobj-conf | 2 +-
|
|
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/support/shlib-install b/support/shlib-install
|
2023-09-02 01:43:07 +03:00
|
|
|
index 661355d32b2db3a535c87032152df602eb515404..f15ec01a6980107183256eedcc19cad7857cf438 100644
|
2022-06-08 01:39:32 +03:00
|
|
|
--- a/support/shlib-install
|
|
|
|
+++ b/support/shlib-install
|
|
|
|
@@ -71,7 +71,7 @@ fi
|
|
|
|
# Cygwin installs both a dll (which must go in $BINDIR) and an implicit
|
|
|
|
# link library (in $libdir)
|
|
|
|
case "$host_os" in
|
|
|
|
-hpux*|darwin*|macosx*|linux*|solaris2*)
|
|
|
|
+hpux*|darwin*|macosx*|linux*|solaris2*|serenity*)
|
|
|
|
if [ -z "$uninstall" ]; then
|
|
|
|
chmod 755 ${INSTALLDIR}/${LIBNAME}
|
|
|
|
fi ;;
|
|
|
|
@@ -118,7 +118,7 @@ INSTALL_LINK2='${echo} cd $INSTALLDIR && ${echo} ${LN} $LIBNAME $LINK2'
|
|
|
|
# Create symlinks to the installed library. This section is incomplete.
|
|
|
|
#
|
|
|
|
case "$host_os-$host_vendor" in
|
|
|
|
-*linux*|freebsd*|dragonfly*)
|
|
|
|
+*linux*|freebsd*|dragonfly*|serenity*)
|
|
|
|
# libname.so.M -> libname.so.M.N
|
|
|
|
${echo} ${RM} ${INSTALLDIR}/$LINK2
|
|
|
|
if [ -z "$uninstall" ]; then
|
|
|
|
diff --git a/support/shobj-conf b/support/shobj-conf
|
2023-09-02 01:43:07 +03:00
|
|
|
index cd7634dfa6247f021a640e2df74f7ed843ff66ad..50ad6ee8d81cebda15c9fafef826a591b9318e52 100644
|
2022-06-08 01:39:32 +03:00
|
|
|
--- a/support/shobj-conf
|
|
|
|
+++ b/support/shobj-conf
|
|
|
|
@@ -123,7 +123,7 @@ sunos5*|solaris2*)
|
|
|
|
;;
|
|
|
|
|
|
|
|
# All versions of Linux (including Gentoo/FreeBSD) or the semi-mythical GNU Hurd.
|
2023-09-02 01:43:07 +03:00
|
|
|
-linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*)
|
|
|
|
+linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*|serenity*)
|
2022-06-08 01:39:32 +03:00
|
|
|
SHOBJ_CFLAGS=-fPIC
|
|
|
|
SHOBJ_LD='${CC}'
|
|
|
|
SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
|