* [PATCH] makedumpfile: fix Makefile for eppic_makedumpfile.so build
@ 2014-06-09 7:33 WANG Chao
2014-06-10 7:38 ` Atsushi Kumagai
0 siblings, 1 reply; 2+ messages in thread
From: WANG Chao @ 2014-06-09 7:33 UTC (permalink / raw)
To: Atsushi Kumagai, vgoyal, Mahesh J Salgaonkar; +Cc: kexec
When libeppic isn't installed on a standard location, building
eppic_makedumpfile.so with -leppic directly doesn't work.
Add LDFLAGS to build arguments, so that one can pass LDFLAGS="-Ldir
-Idir" to tell where to search for libeppic library and its header
files.
For example, if eppic source is installed on the same directory level
with makedumpfile as the following:
makedumpfile
├── arch
└── eppic_scripts
eppic
├── applications
└── libeppic
After compiling libeppic, one can use the following command to build
eppic_makedumpfile.so:
make LDFLAGS="-I../eppic/libeppic -L../eppic/libeppic" eppic_makedumpfile.so
Signed-off-by: WANG Chao <chaowang@redhat.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index d87638b..0cc07ef 100644
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,7 @@ makedumpfile: $(SRC_BASE) $(OBJ_PART) $(OBJ_ARCH)
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) $(LDFLAGS) -shared -rdynamic -o $@ extension_eppic.c -fPIC -leppic -ltinfo
clean:
rm -f $(OBJ) $(OBJ_PART) $(OBJ_ARCH) makedumpfile makedumpfile.8.gz makedumpfile.conf.5.gz
--
1.9.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] makedumpfile: fix Makefile for eppic_makedumpfile.so build
2014-06-09 7:33 [PATCH] makedumpfile: fix Makefile for eppic_makedumpfile.so build WANG Chao
@ 2014-06-10 7:38 ` Atsushi Kumagai
0 siblings, 0 replies; 2+ messages in thread
From: Atsushi Kumagai @ 2014-06-10 7:38 UTC (permalink / raw)
To: chaowang@redhat.com
Cc: mahesh.salgaonkar@in.ibm.com, kexec@lists.infradead.org,
vgoyal@redhat.com
Hello WANG,
Thanks for your work, I'll merge this into v1.5.7, but...
>When libeppic isn't installed on a standard location, building
>eppic_makedumpfile.so with -leppic directly doesn't work.
>
>Add LDFLAGS to build arguments, so that one can pass LDFLAGS="-Ldir
>-Idir" to tell where to search for libeppic library and its header
>files.
>
>For example, if eppic source is installed on the same directory level
>with makedumpfile as the following:
>
>makedumpfile
>├── arch
>└── eppic_scripts
>eppic
>├── applications
>└── libeppic
I'll replace these multibyte characters :-(
Thanks
Atsushi Kumagai
>After compiling libeppic, one can use the following command to build
>eppic_makedumpfile.so:
>
>make LDFLAGS="-I../eppic/libeppic -L../eppic/libeppic" eppic_makedumpfile.so
>
>Signed-off-by: WANG Chao <chaowang@redhat.com>
>---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/Makefile b/Makefile
>index d87638b..0cc07ef 100644
>--- a/Makefile
>+++ b/Makefile
>@@ -87,7 +87,7 @@ makedumpfile: $(SRC_BASE) $(OBJ_PART) $(OBJ_ARCH)
> 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) $(LDFLAGS) -shared -rdynamic -o $@ extension_eppic.c -fPIC -leppic -ltinfo
>
> clean:
> rm -f $(OBJ) $(OBJ_PART) $(OBJ_ARCH) makedumpfile makedumpfile.8.gz makedumpfile.conf.5.gz
>--
>1.9.3
>
>
>_______________________________________________
>kexec mailing list
>kexec@lists.infradead.org
>http://lists.infradead.org/mailman/listinfo/kexec
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-10 7:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-09 7:33 [PATCH] makedumpfile: fix Makefile for eppic_makedumpfile.so build WANG Chao
2014-06-10 7:38 ` Atsushi Kumagai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox