Commit 7ad045bc authored by valenok's avatar valenok

removed -s flag from compilation - RPM doesnt like it. Smaller binaries can be...

removed -s flag from compilation - RPM doesnt like it. Smaller binaries can be created by stripping and packing.
parent 8d2bc8dd
...@@ -28,12 +28,12 @@ LINFLAGS= -ldl -pthread $(SSLFLAGS) $(CFLAGS) ...@@ -28,12 +28,12 @@ LINFLAGS= -ldl -pthread $(SSLFLAGS) $(CFLAGS)
LIB= _$(PROG).so LIB= _$(PROG).so
linux: linux:
$(CC) $(LINFLAGS) mongoose.c -shared -fPIC -fpic -s -o $(LIB) $(CC) $(LINFLAGS) mongoose.c -shared -fPIC -fpic -o $(LIB)
$(CC) $(LINFLAGS) mongoose.c main.c -s -o $(PROG) $(CC) $(LINFLAGS) mongoose.c main.c -o $(PROG)
bsd: bsd:
$(CC) $(CFLAGS) mongoose.c -shared -pthread -s -fpic -fPIC -o $(LIB) $(CC) $(CFLAGS) mongoose.c -shared -pthread -fpic -fPIC -o $(LIB)
$(CC) $(CFLAGS) mongoose.c main.c -pthread -s $(SSLFLAGS) -o $(PROG) $(CC) $(CFLAGS) mongoose.c main.c -pthread $(SSLFLAGS) -o $(PROG)
mac: mac:
$(CC) $(CFLAGS) $(MAC_SHARED) mongoose.c -pthread $(SSLFLAGS) -o $(LIB) $(CC) $(CFLAGS) $(MAC_SHARED) mongoose.c -pthread $(SSLFLAGS) -o $(LIB)
...@@ -41,9 +41,9 @@ mac: ...@@ -41,9 +41,9 @@ mac:
solaris: solaris:
gcc $(CFLAGS) mongoose.c -pthread -lnsl \ 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) \ gcc $(CFLAGS) mongoose.c main.c -pthread -lnsl -lsocket $(SSLFLAGS) \
-s -o $(PROG) -o $(PROG)
########################################################################## ##########################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment