SOURCES: suspend-build.patch (NEW) - new

arekm arekm at pld-linux.org
Thu Sep 28 12:27:01 CEST 2006


Author: arekm                        Date: Thu Sep 28 10:27:01 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new

---- Files affected:
SOURCES:
   suspend-build.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/suspend-build.patch
diff -u /dev/null SOURCES/suspend-build.patch:1.1
--- /dev/null	Thu Sep 28 12:27:01 2006
+++ SOURCES/suspend-build.patch	Thu Sep 28 12:26:56 2006
@@ -0,0 +1,42 @@
+diff -urN suspend.org/Makefile suspend/Makefile
+--- suspend.org/Makefile	2006-09-28 10:16:56.000000000 +0200
++++ suspend/Makefile	2006-09-28 12:26:30.000000000 +0200
+@@ -9,6 +9,7 @@
+ LD_FLAGS=-L/usr/local/lib
+ 
+ CFLAGS := -O2 -Wall
++LDFLAFS :=
+ 
+ ifdef CONFIG_COMPRESS
+ CC_FLAGS	+= -DCONFIG_COMPRESS
+@@ -66,7 +67,7 @@
+ 	rm -f $(S2DISK) $(S2BOTH) suspend-keygen suspend.keys resume s2ram *.o vbetool/*.o vbetool/x86emu/*.o vbetool/x86emu/*.a
+ 
+ s2ram:	s2ram.c dmidecode.c whitelist.c radeontool.c $(S2RAMOBJ)
+-	$(CC) $(CFLAGS) -g s2ram.c $(S2RAMOBJ) -lpci -o s2ram
++	$(CC) $(CFLAGS) -g s2ram.c $(S2RAMOBJ) -lpci -lz -o s2ram
+ 
+ vbetool/vbetool.o:	vbetool/vbetool.c
+ 	$(CC) $(CFLAGS) -DS2RAM -c vbetool/vbetool.c -o vbetool/vbetool.o
+@@ -111,17 +112,17 @@
+ 	$(CC) -g $(CFLAGS) $(CC_FLAGS) -c $< -o $@
+ 
+ $(S2DISK):	vt.o md5.o encrypt.o config.o suspend.c swsusp.h config.h encrypt.h md5.h $(SPLASHOBJ)
+-	$(CC) -g $(CFLAGS) $(CC_FLAGS) vt.o md5.o encrypt.o config.o suspend.c -o $@ $(SPLASHOBJ) $(LD_FLAGS)
++	$(CC) -g $(CFLAGS) $(CC_FLAGS) vt.o md5.o encrypt.o config.o suspend.c -o $@ $(SPLASHOBJ) $(LD_FLAGS) $(LDFLAGS)
+ 
+ $(S2BOTH):	md5.o encrypt.o config.o suspend.c swsusp.h config.h encrypt.h md5.h s2ram.c dmidecode.c whitelist.c radeontool.c $(S2RAMOBJ) $(SPLASHOBJ)
+-	$(CC) -g $(CFLAGS) -DCONFIG_BOTH $(CC_FLAGS) md5.o encrypt.o config.o suspend.c s2ram.c -o $@ $(S2RAMOBJ) $(SPLASHOBJ) $(LD_FLAGS) -lpci
++	$(CC) -g $(CFLAGS) -DCONFIG_BOTH $(CC_FLAGS) md5.o encrypt.o config.o suspend.c s2ram.c -o $@ $(S2RAMOBJ) $(SPLASHOBJ) $(LD_FLAGS) $(LDFLAGS) -lpci -lz
+ 
+ resume:	md5.o encrypt.o config.o resume.c swsusp.h config.h encrypt.h md5.h $(SPLASHOBJ)
+-	$(CC) $(CFLAGS) $(CC_FLAGS) $(STATIC_CC_FLAGS) md5.o encrypt.o config.o vt.o resume.c $(SPLASHOBJ) -static -o resume $(LD_FLAGS) $(STATIC_LD_FLAGS)
++	$(CC) $(CFLAGS) $(CC_FLAGS) $(STATIC_CC_FLAGS) md5.o encrypt.o config.o vt.o resume.c $(SPLASHOBJ) -static -o resume $(LD_FLAGS) $(LDFLAGS) $(STATIC_LD_FLAGS)
+ 
+ ifdef CONFIG_ENCRYPT
+ suspend-keygen:	md5.o keygen.c encrypt.h md5.h
+-	$(CC) $(CFLAGS) -DHAVE_INTTYPES_H -DHAVE_STDINT_H $(CC_FLAGS) md5.o keygen.c -o suspend-keygen $(LD_FLAGS)
++	$(CC) $(CFLAGS) -DHAVE_INTTYPES_H -DHAVE_STDINT_H $(CC_FLAGS) md5.o keygen.c -o suspend-keygen $(LD_FLAGS) $(LDFLAGS)
+ 
+ install-s2disk: $(S2DISK) suspend-keygen conf/$(CONFIGFILE) $(SNAPSHOT)
+ 	install --mode=755 suspend-keygen $(DESTDIR)$(SUSPEND_DIR)
================================================================


More information about the pld-cvs-commit mailing list