]> git.pld-linux.org Git - packages/dshowserver.git/blob - dshowserver-optflags.patch
- reriten and expanded optflags.patch - due to source changes
[packages/dshowserver.git] / dshowserver-optflags.patch
1 diff -urN dshowserver.orig/dshowserver/Makefile dshowserver.patched/dshowserver/Makefile
2 --- dshowserver.orig/dshowserver/Makefile       2010-01-09 13:33:17.000000000 +0100
3 +++ dshowserver.patched/dshowserver/Makefile    2010-01-09 16:00:46.301806057 +0100
4 @@ -2,13 +2,13 @@
5  
6  
7  CFLAGS=-I../loader -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D__WINE__ -DNOAVIFILE_HEADERS -DMPLAYER
8 -CFLAGS+=-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
9 +OPTFLAGS:=-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
10  
11  ifdef DEBUG
12 -  CFLAGS+= -g
13 +  OPTFLAGS+= -g
14    LOADER_OPT = "DEBUG=1"
15  else
16 -  CFLAGS+= -O2
17 +  OPTFLAGS+= -O2
18  endif
19  ifdef STATIC
20    STATICBUILD= -static
21 @@ -28,6 +28,7 @@
22    endif
23  endif
24  
25 +CFLAGS += $(OPTFLAGS)
26  LIBS += $(EXTRA_LIBS)
27  
28  .PHONY: loader
29 @@ -35,7 +36,7 @@
30  all: $(OBJDIR) dshowserver $(REGISTERCODEC)
31  
32  dshowserver: $(OBJDIR)/server.o $(OBJDIR)/timeout_sem.o $(OBJDIR)/defaults.o $(OBJDIR)/crc32.o $(OBJDIR)/libloader.a
33 -       $(CC) $(STATICBUILD) -o $@ $^ $(LIBS)
34 +       $(CC) $(CFLAGS) $(LDFLAGS) $(STATICBUILD) -o $@ $^ $(LIBS)
35  ifdef X_COMPILE
36         mv $@ $@.exe
37         echo "#!/bin/sh" > $@
38 @@ -45,7 +46,7 @@
39  endif
40  
41  registercodec: ../loader/modify_reg.c ../loader/registry.c
42 -       $(CC) $(STATICBUILD) -I../loader -I../loader/compat -o $@ $<
43 +       $(CC) $(CFLAGS) $(LDFLAGS) $(STATICBUILD) -I../loader -I../loader/compat -o $@ $<
44  
45  
46  $(OBJDIR):
This page took 0.028571 seconds and 3 git commands to generate.