mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-11 15:48:21 +02:00
19 lines
949 B
Diff
19 lines
949 B
Diff
Respect CC, CFLAGS, & LDFLAGS.
|
|
Drop DEPRECATED flags for bug #387833.
|
|
Fix underlinking for bug #369453.
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,10 +1,10 @@
|
|
all: gromit
|
|
|
|
proptest: proptest.c
|
|
- gcc -o proptest proptest.c `gtk-config --libs --cflags`
|
|
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o proptest proptest.c `gtk-config --libs --cflags`
|
|
|
|
propertywatch: propertywatch.c
|
|
- gcc -o propertywatch propertywatch.c `gtk-config --libs --cflags`
|
|
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o propertywatch propertywatch.c `gtk-config --libs --cflags`
|
|
|
|
gromit: gromit.c Makefile
|
|
- gcc -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -o gromit gromit.c -Wall `pkg-config --libs --cflags gtk+-2.0`
|
|
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -o gromit gromit.c -Wall `$(PKG_CONFIG) --libs --cflags gtk+-2.0 x11` -lm
|