]> git.pld-linux.org Git - packages/shotwell.git/blob - shotwell-cflags.patch
- fix building on x86_64
[packages/shotwell.git] / shotwell-cflags.patch
1 diff -dur shotwell-0.9.0.orig/plugins/Makefile.plugin.mk shotwell-0.9.0/plugins/Makefile.plugin.mk
2 --- shotwell-0.9.0.orig/plugins/Makefile.plugin.mk      2011-03-22 21:46:13.000000000 +0100
3 +++ shotwell-0.9.0/plugins/Makefile.plugin.mk   2011-03-23 10:41:40.000000000 +0100
4 @@ -32,7 +32,8 @@
5  CFILES := $(notdir $(SRC_FILES:.vala=.c))
6  OFILES := $(notdir $(SRC_FILES:.vala=.o))
7  
8 -CFLAGS := `pkg-config --print-errors --cflags $(EXT_PKGS)` -O2 -g -pipe -fPIC -nostdlib \
9 +CFLAGS = -O2 -g
10 +PLUGIN_CFLAGS := `pkg-config --print-errors --cflags $(EXT_PKGS)` $(CFLAGS) -pipe -fPIC -nostdlib \
11         -export-dynamic
12  LDFLAGS := `pkg-config --print-errors --libs $(EXT_PKGS)` $(LDFLAGS)
13  DEFINES := -D_VERSION='"$(PLUGINS_VERSION)"' -DGETTEXT_PACKAGE='"shotwell"'
14 @@ -52,10 +53,10 @@
15         @
16  
17  $(OFILES): %.o: %.c $(CFILES)
18 -       $(CC) -c $(CFLAGS) $(DEFINES) -I../.. $(CFILES)
19 +       $(CC) -c $(PLUGIN_CFLAGS) $(DEFINES) -I../.. $(CFILES)
20  
21  $(PLUGIN).so: $(OFILES)
22 -       $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -I../.. -shared -o $@
23 +       $(CC) $(PLUGIN_CFLAGS) $(LDFLAGS) $(OFILES) -I../.. -shared -o $@
24  
25  .PHONY: cleantemps
26  cleantemps:
This page took 0.060615 seconds and 3 git commands to generate.