0
0
Fork 0
haikuports/dev-util/dialog/patches/dialog-1.3_20170509.patchset

31 lines
908 B
Plaintext

From 6f41b97ceedbc7a5125cc8fb0ecd29995f47e765 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 5 Dec 2016 16:56:34 +0000
Subject: add a case for haiku.
diff --git a/configure b/configure
index a82b478..bb8cd58 100755
--- a/configure
+++ b/configure
@@ -10367,6 +10367,16 @@ echo "${ECHO_T}$CC_SHARED_OPTS" >&6
(beos*)
MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
;;
+ (haiku*)
+ test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
+ if test "$cf_cv_shlib_version" = rel; then
+ cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
+ else
+ cf_cv_shared_soname='`basename $@`'
+ fi
+
+ MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -shared -Xlinker -soname='$cf_cv_shared_soname
+ ;;
(cygwin*)
CC_SHARED_OPTS=
MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
--
2.10.2