summaryrefslogtreecommitdiff
blob: d9c948dab9df615ef97eed3d284856c667c6f61b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff -ru pommed-1.16~/pommed/Makefile pommed-1.16/pommed/Makefile
--- pommed-1.16~/pommed/Makefile	2008-04-27 12:28:57.000000000 +0200
+++ pommed-1.16/pommed/Makefile	2008-04-27 12:31:10.000000000 +0200
@@ -16,7 +16,7 @@
 
 INOTIFY_CFLAGS = $(shell test -e /usr/include/sys/inotify.h || echo -DNO_SYS_INOTIFY_H)
 
-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS)
+CFLAGS += -g -O2 -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS)
 
 LDFLAGS = -pthread $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS)
 
@@ -42,7 +42,7 @@
 
 else
 
-LDFLAGS += -lz -lsmbios
+LDFLAGS += -lz -lsmbios -lstdc++
 
 SOURCES = pommed.c cd_eject.c evdev.c conffile.c audio.c \
 		dbus.c power.c beep.c video.c \
@@ -50,7 +50,7 @@
 		mactel/nv8600mgt_backlight.c \
 		mactel/kbd_backlight.c mactel/ambient.c mactel/acpi.c
 
-LIBS = /usr/lib/libpci.a
+LIBS = $(shell pkg-config libpci --libs)
 endif
 
 OBJS = $(SOURCES:%.c=%.o)