@@ -627,8 +627,8 @@ GL_LDFLAGS
627
627
GL_CFLAGS
628
628
JV_LDFLAGS
629
629
PLUGINS
630
+ STRIP
630
631
DASHG
631
- DASHX
632
632
DASHS
633
633
SLNT
634
634
CMNT
@@ -2977,29 +2977,40 @@ unicon_osrel=$OSREL
2977
2977
case $host_os in
2978
2978
* linux* )
2979
2979
unicon_os=" linux"
2980
-
2981
- # if dist/version are not set, try to guess them
2982
- if test x$unicon_osdist = x ; then
2983
- if test -f /etc/os-release ; then
2984
- . /etc/os-release
2985
- unicon_osdist=$NAME
2986
- unicon_osrel=$VERSION_ID
2987
- elif type lsb_release > /dev/null 2>&1 ; then
2988
- unicon_osdist=$( lsb_release -si)
2989
- unicon_osrel=$( lsb_release -sr)
2990
- elif test -f /etc/lsb-release ; then
2991
- . /etc/lsb-release
2992
- unicon_osdist=$DISTRIB_ID
2993
- unicon_osrel=$DISTRIB_RELEASE
2994
- elif test -f /etc/debian_version ; then
2995
- unicon_osdist=Debian
2996
- unicon_osrel=$( cat /etc/debian_version)
2997
- fi
2998
- fi
2980
+ # if dist/version are not set, try to guess them
2981
+ if test x$unicon_osdist = x ; then
2982
+ if test -f /etc/os-release ; then
2983
+ . /etc/os-release
2984
+ unicon_osdist=$NAME
2985
+ unicon_osrel=$VERSION_ID
2986
+ elif type lsb_release > /dev/null 2>&1 ; then
2987
+ unicon_osdist=$( lsb_release -si)
2988
+ unicon_osrel=$( lsb_release -sr)
2989
+ elif test -f /etc/lsb-release ; then
2990
+ . /etc/lsb-release
2991
+ unicon_osdist=$DISTRIB_ID
2992
+ unicon_osrel=$DISTRIB_RELEASE
2993
+ elif test -f /etc/debian_version ; then
2994
+ unicon_osdist=Debian
2995
+ unicon_osrel=$( cat /etc/debian_version)
2996
+ fi
2997
+ fi
2999
2998
3000
2999
3001
3000
$as_echo " #define UNIX 1" >> confdefs.h
3002
3001
3002
+
3003
+ case $host_os in
3004
+ * musl* )
3005
+
3006
+ $as_echo " #define __MUSL__ 1" >> confdefs.h
3007
+
3008
+ MUSLFLG=" -D__MUSL__"
3009
+ CFLAGS=" -fno-pie $CFLAGS "
3010
+ LDFLAGS=" -no-pie $LDFLAGS "
3011
+ ;;
3012
+ esac
3013
+
3003
3014
;;
3004
3015
* solaris* )
3005
3016
unicon_os=" solaris"
@@ -3020,7 +3031,7 @@ $as_echo "#define UNIX 1" >>confdefs.h
3020
3031
3021
3032
;;
3022
3033
* bsd* )
3023
- # freebsd for now
3034
+ # freebsd for now
3024
3035
unicon_os=" freebsd"
3025
3036
3026
3037
$as_echo " #define UNIX 1" >> confdefs.h
@@ -3200,6 +3211,7 @@ else
3200
3211
thin=no
3201
3212
fi
3202
3213
3214
+
3203
3215
# Check whether --enable-debug was given.
3204
3216
if test " ${enable_debug+set} " = set ; then :
3205
3217
enableval=$enable_debug ; debug=yes
@@ -3223,11 +3235,12 @@ fi
3223
3235
3224
3236
# Check whether --enable-devmode was given.
3225
3237
if test " ${enable_devmode+set} " = set ; then :
3226
- enableval=$enable_devmode ; devmode=yes
3238
+ enableval=$enable_devmode ; devmode=$enableval
3227
3239
else
3228
3240
devmode=no
3229
3241
fi
3230
3242
3243
+
3231
3244
# Check whether --enable-werror was given.
3232
3245
if test " ${enable_werror+set} " = set ; then :
3233
3246
enableval=$enable_werror ; werror=yes
@@ -3242,6 +3255,7 @@ else
3242
3255
warn=no
3243
3256
fi
3244
3257
3258
+
3245
3259
# Check whether --enable-uniconx was given.
3246
3260
if test " ${enable_uniconx+set} " = set ; then :
3247
3261
enableval=$enable_uniconx ; uniconx=yes
@@ -4741,24 +4755,30 @@ else
4741
4755
UNICONWT=wicont
4742
4756
fi
4743
4757
4744
- if test x" $devmode " = x" yes" ; then
4758
+ if test x" $devmode " = x" yes" || test x " $devmode " = x " all " ; then
4745
4759
debug=yes
4746
4760
warn=yes
4747
4761
4748
4762
$as_echo " #define DEVELOPMODE 1" >> confdefs.h
4749
4763
4764
+ if test x" $devmode " = x" all" ; then
4765
+ debugheap=yes
4766
+ verifyheap=yes
4767
+ fi
4750
4768
fi
4751
4769
4752
4770
if test x" $debugheap " = x" yes" ; then
4753
4771
4754
4772
$as_echo " #define DebugHeap 1" >> confdefs.h
4755
4773
4774
+ debugheapreport=" DebugHeap"
4756
4775
fi
4757
4776
4758
4777
if test x" $verifyheap " = x" yes" ; then
4759
4778
4760
4779
$as_echo " #define VerifyHeap 1" >> confdefs.h
4761
4780
4781
+ verifyheapreport=" VerifyHeap"
4762
4782
fi
4763
4783
4764
4784
if test x" $udbtools " = x" yes" ; then
@@ -7022,7 +7042,7 @@ esac
7022
7042
7023
7043
OBJ=o
7024
7044
CFUNCTARGET=" cfun"
7025
- CFDYN=" -fPIC "
7045
+ CFDYN=" -fPIC $MUSLFLG "
7026
7046
LDDYN=" -shared "
7027
7047
SO=so
7028
7048
# OS specific flags go here
@@ -7042,7 +7062,6 @@ case $unicon_host in
7042
7062
;;
7043
7063
* macos* )
7044
7064
LDDYN=" -Xlinker -undefined -Xlinker dynamic_lookup -shared "
7045
- DASHX=-x
7046
7065
RLIBS=" -ldl "
7047
7066
;;
7048
7067
* windows* )
@@ -7080,11 +7099,16 @@ if test "x$iconc" = "xyes" || test "x$iconc" = "xon" ; then
7080
7099
ICONCTARGET=Iconc
7081
7100
fi
7082
7101
7083
-
7084
7102
if test " x$orig_cflags " ! = " x" ; then
7085
7103
CFLAGS=" $CFLAGS $orig_cflags "
7086
7104
fi
7087
7105
7106
+ if test x" $debug " = x" yes" ; then
7107
+ STRIP=" @\#strip"
7108
+ else
7109
+ STRIP=strip
7110
+ fi
7111
+
7088
7112
7089
7113
7090
7114
@@ -17122,9 +17146,11 @@ LDFLAGS :$LDFLAGS
17122
17146
LIBS : $LIBS
17123
17147
CXX : $CXX (Required only with FTGL and VOIP)
17124
17148
CXXFLAGS : $CXXFLAGS
17125
- prefix : $prefix
17149
+ CFDYN : $CFDYN
17150
+ LDDYN : $LDDYN
17151
+ prefix : $prefix
17126
17152
Verbose : $verbosebuild
17127
- Debug : $debug
17153
+ Debug : $debug $debugheapreport $verifyheapreport
17128
17154
Warnings : $warn
17129
17155
Werror : $werror
17130
17156
Devmode : $devmode
0 commit comments