File libjackasyn-coptflags.diff of Package libjackasyn
Index: Makefile.in
===================================================================
--- Makefile.in.orig 2009-04-02 15:18:45.000000000 +0200
+++ Makefile.in 2009-04-02 15:20:21.000000000 +0200
@@ -8,7 +8,8 @@ TARGET = libjackasyn
SRC_FILES = libjackasyn.c libjackoss.c clientfuncs.c
OBJ_FILES = $(SRC_FILES:.c=.o) libjackoss_pl.o
HEADERS = libjackasyn.h libjackoss.h
-CFLAGS = -O2 -Wall -I. -fPIC -rdynamic -DMAJOR=$(MAJOR) -DMINOR=$(MINOR) @DEBUG@
+COPTFLAGS = -O2 -Wall
+CFLAGS += $(COPTFLAGS) -I. -fPIC -rdynamic -DMAJOR=$(MAJOR) -DMINOR=$(MINOR) @DEBUG@
LIBS = -lc @LIBS@
@@ -27,7 +28,7 @@ static: $(OBJ_FILES)
ar cr libjackasyn.a *.o
shared:
- gcc -shared -Wl,-soname=libjackasyn.so.0 -o libjackasyn.so.$(VERSION) *.o $(LIBS)
+ gcc -shared -Wl,--as-needed -Wl,-soname=libjackasyn.so.0 -o libjackasyn.so.$(VERSION) *.o $(LIBS)
install:
mkdir -p $(DESTDIR)$(libdir)