patches/cheese-03-flags.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 432 3f9248505c0b
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
432
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     1
diff -ru cheese-0.2.3.orig/src/Makefile cheese-0.2.3/src/Makefile
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     2
--- cheese-0.2.3.orig/src/Makefile	2007年  8月 30日 四 18:28:49
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     3
+++ cheese-0.2.3/src/Makefile	2007年  8月 30日 四 18:51:05
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     4
@@ -44,8 +44,8 @@
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     5
 LIBEBOOK_CFLAGS := $(LIBEBOK_1_2_CFLAGS)
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     6
 LIBEBOOK_LIBS := $(LIBEBOK_1_2_LIBS)
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     7
 
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     8
-CFLAGS := $(call toc2.call.remove-dupes,-g -O2 -Wall -Werror $(DBUS_CFLAGS) $(GTK_CFLAGS) $(GLADE_CFLAGS) $(GSTREAMER_CFLAGS) $(GNOME_VFS_CFLAGS) $(GDK_CFLAGS) $(LIBGNOMEUI_CFLAGS) $(LIBEBOOK_CFLAGS) $(XF86VM_CFLAGS))
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     9
-LDFLAGS := $(call toc2.call.remove-dupes,-lpthread $(DBUS_LIBS) $(GTK_LIBS) $(GLADE_LIBS) $(GSTREAMER_LIBS) $(GNOME_VFS_LIBS) $(GDK_LIBS) $(LIBGNOMEUI_LIBS) $(LIBEBOOK_LIBS) $(XF86VM_LIBS))
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    10
+CFLAGS := $(call toc2.call.remove-dupes,$(CFLAGS) $(_CFLAGS))
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    11
+LDFLAGS := $(call toc2.call.remove-dupes,$(LDFLAGS) $(_LIBS))
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    12
 
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    13
 OBJS = $(SOURCES:%.c=%.o)
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    14
 
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    15
diff -ru cheese-0.2.3.orig/toc2/make/toc2-c.make cheese-0.2.3/toc2/make/toc2-c.make
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    16
--- cheese-0.2.3.orig/toc2/make/toc2-c.make	2007年  6月 30日 六 07:17:29
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    17
+++ cheese-0.2.3/toc2/make/toc2-c.make	2007年  8月 30日 四 18:54:00
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    18
@@ -140,11 +140,7 @@
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    19
 	@test x != 'x$$($(1).BIN.SOURCES)' && {\
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    20
 		$(call toc2.bins.mkdep.rule-c,$$(@).d,$$($(1).BIN.SOURCES)); }; true
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    21
 	@$(call toc2.call.setx-unless-quiet,"CXX [$$@] ..."); \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    22
-        $$(CXX) -o $$@ \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    23
-                $$(INCLUDES) \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    24
-                $$(CFLAGS) \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    25
-                $$(CXXFLAGS) \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    26
-                $$(CPPFLAGS) \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    27
+        $$(CC) -o $$@ \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    28
                 $$(LDFLAGS) \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    29
                 $$($(1).BIN.OBJECTS) $$($(1).BIN.SOURCES)
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    30
 bins: $$($(1).BIN)
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    31
@@ -185,9 +181,8 @@
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    32
 	@test x = "x$$($(1).DLL.OBJECTS)$$($(1).DLL.SOURCES)" && { \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    33
 	echo "toc2.eval.rules.c-dll: $$@: $(1).DLL.OBJECTS and/or $(1).DLL.SOURCES are/is undefined!"; exit 1; }; \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    34
 	$(call toc2.call.setx-unless-quiet,"CXX [$$@] ..."); \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    35
-	 $$(CXX) -o $$@ -shared -export-dynamic $$(LDFLAGS) \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    36
-		$$($(1).DLL.LDADD) $$($(1).DLL.OBJECTS) $$($(1).DLL.SOURCES) \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    37
-		$$($(1).DLL.CPPFLAGS)
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    38
+	 $$(LD) -o $$@ -shared -export-dynamic $$(LDFLAGS) \
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    39
+		$$($(1).DLL.LDADD) $$($(1).DLL.OBJECTS) $$($(1).DLL.SOURCES)
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    40
 endef
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    41
 ########################################################################
3f9248505c0b 2007-08-30 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    42
 # $(call toc2.call.rules.c-dll,basename_list) calls and $(eval)s