blob: 60df95f8c04e50c72ee3f3b38ba5b32b38945cfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
From: Nathan Phillip Brink <binki@gentoo.org>
Subject: Respect LDFLAGS, CFLAGS, and CPPFLAGS.
--- a/Makefile
+++ b/Makefile
@@ -35,8 +35,8 @@
all: libbtbb
libbtbb:
- $(CC) -g -O2 -Wall -fPIC -c $(SOURCE_FILES)
- $(CC) -shared -Wl,-soname,$(SONAME) -o $(LIB_FILE) $(OBJECT_FILES)
+ $(CC) $(CFLAGS) $(CPPFLAGS) -g -O2 -Wall -fPIC -c $(SOURCE_FILES)
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $(LIB_FILE) $(OBJECT_FILES)
clean:
rm -f *.o $(LIB_FILE)
|