2006-06-06 06:19:05 +00:00
|
|
|
--- pcmciautils-014/Makefile.orig 2006-06-06 08:07:32.000000000 +0200
|
|
|
|
+++ pcmciautils-014/Makefile 2006-06-06 08:10:26.000000000 +0200
|
|
|
|
@@ -147,30 +147,11 @@
|
|
|
|
LIB_OBJS = -lc -lsysfs
|
2005-07-11 17:20:11 +00:00
|
|
|
LIB_PCI_OBJS = -lc -lpci
|
|
|
|
|
2006-06-06 06:19:05 +00:00
|
|
|
-ifeq ($(strip $(STATIC)),true)
|
|
|
|
- LIB_OBJS = -lsysfs
|
|
|
|
- LIB_PCI_OBJS = -lpci
|
|
|
|
- LDFLAGS += -static
|
|
|
|
-else
|
|
|
|
- LDFLAGS += -Wl,-warn-common
|
|
|
|
-endif
|
|
|
|
-
|
2005-07-11 17:20:11 +00:00
|
|
|
-ifeq ($(strip $(V)),false)
|
|
|
|
- QUIET=@$(PWD)/build/ccdv
|
|
|
|
- HOST_PROGS=build/ccdv
|
|
|
|
-else
|
|
|
|
- QUIET=
|
|
|
|
- HOST_PROGS=
|
|
|
|
-endif
|
2006-06-06 06:19:05 +00:00
|
|
|
-
|
2005-07-11 17:20:11 +00:00
|
|
|
-# if DEBUG is enabled, then we do not strip or optimize
|
|
|
|
-ifeq ($(strip $(DEBUG)),true)
|
|
|
|
- CFLAGS += -O1 -g -DDEBUG -D_GNU_SOURCE
|
|
|
|
- STRIPCMD = /bin/true -Since_we_are_debugging
|
|
|
|
-else
|
|
|
|
- CFLAGS += $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
|
|
|
|
- STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
|
|
|
|
-endif
|
2006-06-06 06:19:05 +00:00
|
|
|
+LIB_OBJS = -Wl,-Bstatic -lsysfs -Wl,-Bdynamic
|
|
|
|
+LIB_PCI_OBJS = -lpci
|
2007-03-23 13:23:42 +00:00
|
|
|
+CFLAGS += $(RPM_OPT_FLAGS) $(OPTIMIZATION) -D_GNU_SOURCE
|
2005-07-11 17:20:11 +00:00
|
|
|
+LDFLAGS += -Wl,-warn-common
|
|
|
|
+STRIPCMD = /bin/true
|
|
|
|
|
2006-06-06 06:19:05 +00:00
|
|
|
# HOTPLUG or UDEV?
|
|
|
|
ifeq ($(strip $(UDEV)),false)
|