kexec-tools/kexec-tools-2.0.3-build-makedumpfile-eppic-shared-object.patch
WANG Chao 39178b1346 Rebase makedumpfile-1.5.6
Signed-off-by: WANG Chao <chaowang@redhat.com>
2014-04-30 13:40:01 +08:00

21 lines
720 B
Diff

--- kexec-tools-2.0.6/makedumpfile-1.5.6/Makefile.orig
+++ kexec-tools-2.0.6/makedumpfile-1.5.6/Makefile
@@ -66,7 +66,7 @@
CFLAGS += -DUSESNAPPY
endif
-all: makedumpfile
+all: makedumpfile eppic_makedumpfile.so
$(OBJ_PART): $(SRC_PART)
$(CC) $(CFLAGS) -c -o ./$@ $(VPATH)$(@:.o=.c)
@@ -87,7 +87,7 @@
gzip -c ./makedumpfile.conf.5 > ./makedumpfile.conf.5.gz
eppic_makedumpfile.so: extension_eppic.c
- $(CC) $(CFLAGS) -shared -rdynamic -o $@ extension_eppic.c -fPIC -leppic -ltinfo
+ $(CC) $(CFLAGS) -shared -rdynamic -o $@ extension_eppic.c -I../eppic/libeppic -fPIC ../eppic/libeppic/libeppic.a -ltinfo
clean:
rm -f $(OBJ) $(OBJ_PART) $(OBJ_ARCH) makedumpfile makedumpfile.8.gz makedumpfile.conf.5.gz