Blame SOURCES/kexec-tools-2.0.3-build-makedumpfile-eppic-shared-object.patch

ab224c
--- kexec-tools-2.0.3/makedumpfile-1.5.4/Makefile.orig
ab224c
+++ kexec-tools-2.0.3/makedumpfile-1.5.4/Makefile
ab224c
@@ -60,7 +60,7 @@ LIBS := -lsnappy $(LIBS)
ab224c
 CFLAGS += -DUSESNAPPY
ab224c
 endif
ab224c
 
ab224c
-all: makedumpfile
ab224c
+all: makedumpfile eppic_makedumpfile.so
ab224c
 
ab224c
 $(OBJ_PART): $(SRC_PART)
ab224c
 	$(CC) $(CFLAGS) -c -o ./$@ ./$(@:.o=.c) 
ab224c
@@ -80,7 +80,7 @@ makedumpfile: $(SRC) $(OBJ_PART) $(OBJ_A
ab224c
 	gzip -c ./makedumpfile.conf.5 > ./makedumpfile.conf.5.gz
ab224c
 
ab224c
 eppic_makedumpfile.so: extension_eppic.c
ab224c
-	$(CC) $(CFLAGS) -shared -rdynamic -o $@ extension_eppic.c -fPIC -leppic -ltinfo
ab224c
+	$(CC) $(CFLAGS) -shared -rdynamic -o $@ extension_eppic.c -I../eppic/libeppic -fPIC ../eppic/libeppic/libeppic.a -ltinfo
ab224c
 
ab224c
 clean:
ab224c
 	rm -f $(OBJ) $(OBJ_PART) $(OBJ_ARCH) makedumpfile makedumpfile.8.gz makedumpfile.conf.5.gz