Update configure with latest acr

This commit is contained in:
pancake 2021-07-08 00:24:36 +02:00
parent 5b3e630903
commit d2628e46d6
3 changed files with 10 additions and 7 deletions

4
configure vendored
View File

@ -402,7 +402,7 @@ echo "ERROR: ${CC} cannot create executables" >&2 ;
exit 1 ; fi
ochof "checking for dynamic library... "
HAVE_LIB_DL=0
for OS in gnulinux linux gnu/kfreebsd syllable sunos darwin beos solaris wsl ; do
for OS in gnulinux linux gnu/kfreebsd syllable serenityos sunos darwin beos solaris wsl ; do
if [ "${HOST_OS}" = "${OS}" ]; then
HAVE_LIB_DL=1
break;
@ -725,7 +725,7 @@ if [ "$HOST_OS" = "linux" ]; then
USEROSTYPE="gnulinux"
else
if [ "$HOST_OS" = "serenityos" ]; then
USEROSTYPE="gnulinux"
USEROSTYPE="serenityos"
HAVE_LIB_DL="1"
DL_LIBS="-ldl"
else

View File

@ -165,7 +165,7 @@ IFEQ USEROSTYPE auto ; {
USEROSTYPE = gnulinux ;
}{
IFEQ HOST_OS serenityos ; {
USEROSTYPE = gnulinux ;
USEROSTYPE = serenityos ;
HAVE_LIB_DL = 1 ;
DL_LIBS = -ldl ;
}{

View File

@ -70,6 +70,9 @@ LDFLAGS+=${SSL_LDFLAGS}
#endif
# from env: ALFLAGS+=$(ALFLAGS)
localize_hidden:
for LIB in .libr/* ; do $(OBJCOPY) --localize-hidden $$LIB ; done
# ${PARTIALLD} $(ALFLAGS) $(MLFLAGS) $(PLFLAGS) -o .libr/$$(basename $${LIB}.a).o $${LIB}
.libr: $(wildcard */libr_*.${EXT_AR}) ../shlr/libr_shlr.${EXT_AR}
rm -rf .libr
@ -78,16 +81,16 @@ LDFLAGS+=${SSL_LDFLAGS}
${PARTIALLD} $(ALFLAGS) $(MLFLAGS) $(PLFLAGS) -o .libr/$$(basename $${LIB}.a).o $${LIB} ; \
done
ifeq ($(OSTYPE),linux)
for LIB in .libr/* ; do $(OBJCOPY) --localize-hidden $$LIB ; done
$(MAKE) localize_hidden
endif
ifeq ($(OSTYPE),gnulinux)
for LIB in .libr/* ; do $(OBJCOPY) --localize-hidden $$LIB ; done
$(MAKE) localize_hidden
endif
ifeq ($(OSTYPE),android)
for LIB in .libr/* ; do $(OBJCOPY) --localize-hidden $$LIB ; done
$(MAKE) localize_hidden
endif
ifeq ($(OSTYPE),bsd)
for LIB in .libr/* ; do $(OBJCOPY) --localize-hidden $$LIB ; done
$(MAKE) localize_hidden
endif
_libr.${EXT_AR}: .libr