removed -s flag from compilation - RPM doesnt like it. Smaller binaries can be created by stripping and packing.

This commit is contained in:
valenok 2010-08-23 22:00:04 +01:00
parent 8d2bc8dd8a
commit 7ad045bc33

View File

@ -28,12 +28,12 @@ LINFLAGS= -ldl -pthread $(SSLFLAGS) $(CFLAGS)
LIB= _$(PROG).so
linux:
$(CC) $(LINFLAGS) mongoose.c -shared -fPIC -fpic -s -o $(LIB)
$(CC) $(LINFLAGS) mongoose.c main.c -s -o $(PROG)
$(CC) $(LINFLAGS) mongoose.c -shared -fPIC -fpic -o $(LIB)
$(CC) $(LINFLAGS) mongoose.c main.c -o $(PROG)
bsd:
$(CC) $(CFLAGS) mongoose.c -shared -pthread -s -fpic -fPIC -o $(LIB)
$(CC) $(CFLAGS) mongoose.c main.c -pthread -s $(SSLFLAGS) -o $(PROG)
$(CC) $(CFLAGS) mongoose.c -shared -pthread -fpic -fPIC -o $(LIB)
$(CC) $(CFLAGS) mongoose.c main.c -pthread $(SSLFLAGS) -o $(PROG)
mac:
$(CC) $(CFLAGS) $(MAC_SHARED) mongoose.c -pthread $(SSLFLAGS) -o $(LIB)
@ -41,9 +41,9 @@ mac:
solaris:
gcc $(CFLAGS) mongoose.c -pthread -lnsl \
-lsocket $(SSLFLAGS) -s -fpic -fPIC -shared -o $(LIB)
-lsocket $(SSLFLAGS) -fpic -fPIC -shared -o $(LIB)
gcc $(CFLAGS) mongoose.c main.c -pthread -lnsl -lsocket $(SSLFLAGS) \
-s -o $(PROG)
-o $(PROG)
##########################################################################