Turn off RWX segment warnings on sparc systems.
This commit is contained in:
parent
40c5a9bc06
commit
29fd715fd0
@ -22,7 +22,7 @@ CFLAGS=-O
|
|||||||
|
|
||||||
SFLAGS=-O
|
SFLAGS=-O
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
TEST_LDFLAGS=-L. libz.a
|
TEST_LDFLAGS=$(LDFLAGS) -L. libz.a
|
||||||
LDSHARED=$(CC)
|
LDSHARED=$(CC)
|
||||||
CPP=$(CC) -E
|
CPP=$(CC) -E
|
||||||
|
|
||||||
@ -288,10 +288,10 @@ minigzip$(EXE): minigzip.o $(STATICLIB)
|
|||||||
$(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
|
$(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
|
||||||
|
|
||||||
examplesh$(EXE): example.o $(SHAREDLIBV)
|
examplesh$(EXE): example.o $(SHAREDLIBV)
|
||||||
$(CC) $(CFLAGS) -o $@ example.o -L. $(SHAREDLIBV)
|
$(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) -L. $(SHAREDLIBV)
|
||||||
|
|
||||||
minigzipsh$(EXE): minigzip.o $(SHAREDLIBV)
|
minigzipsh$(EXE): minigzip.o $(SHAREDLIBV)
|
||||||
$(CC) $(CFLAGS) -o $@ minigzip.o -L. $(SHAREDLIBV)
|
$(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) -L. $(SHAREDLIBV)
|
||||||
|
|
||||||
example64$(EXE): example64.o $(STATICLIB)
|
example64$(EXE): example64.o $(STATICLIB)
|
||||||
$(CC) $(CFLAGS) -o $@ example64.o $(TEST_LDFLAGS)
|
$(CC) $(CFLAGS) -o $@ example64.o $(TEST_LDFLAGS)
|
||||||
|
7
configure
vendored
7
configure
vendored
@ -33,7 +33,10 @@ fi
|
|||||||
# set command prefix for cross-compilation
|
# set command prefix for cross-compilation
|
||||||
if [ -n "${CHOST}" ]; then
|
if [ -n "${CHOST}" ]; then
|
||||||
uname=${CHOST}
|
uname=${CHOST}
|
||||||
|
mname=${CHOST}
|
||||||
CROSS_PREFIX="${CHOST}-"
|
CROSS_PREFIX="${CHOST}-"
|
||||||
|
else
|
||||||
|
mname=`(uname -a || echo unknown) 2>/dev/null`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# destination name for static library
|
# destination name for static library
|
||||||
@ -220,6 +223,10 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
|
|||||||
fi
|
fi
|
||||||
case "$uname" in
|
case "$uname" in
|
||||||
Linux* | linux* | *-linux* | GNU | GNU/* | solaris*)
|
Linux* | linux* | *-linux* | GNU | GNU/* | solaris*)
|
||||||
|
case "$mname" in
|
||||||
|
*sparc*)
|
||||||
|
LDFLAGS="${LDFLAGS} -Wl,--no-warn-rwx-segments" ;;
|
||||||
|
esac
|
||||||
LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"} ;;
|
LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"} ;;
|
||||||
*BSD | *bsd* | DragonFly)
|
*BSD | *bsd* | DragonFly)
|
||||||
LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"}
|
LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"}
|
||||||
|
Loading…
Reference in New Issue
Block a user