wireless-tools/wireless-tools-28-makefile.patch
2005-01-17 21:03:47 +00:00

27 lines
846 B
Diff

--- wireless_tools.28/Makefile.makefile 2005-01-13 18:41:21.000000000 -0500
+++ wireless_tools.28/Makefile 2005-01-17 15:50:46.143069822 -0500
@@ -91,12 +91,15 @@
STRIPFLAGS=
endif
+ifndef OPT_FLAGS
+ OPT_FLAGS=
+endif
# Other flags
CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
-Wpointer-arith -Wcast-qual -Winline -I.
#CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
DEPFLAGS=-MMD
-XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG)
+XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(OPT_FLAGS)
PICFLAG=-fPIC
# Standard compilation targets
@@ -136,6 +139,7 @@
# Compilation of the dynamic library
$(DYNAMIC): $(OBJS:.o=.so)
$(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) -lc $^
+ ln -s $@ $(DYNAMIC_LINK)
# Compilation of the static library
$(STATIC): $(OBJS)