Makefiles housekeeping III
Subsystems (2)
cover Makefiles housekeeping III
Xose Vazquez Perez (3):
multipath-tools: install libs in a standard way
multipath-tools: merge OPTFLAGS into CFLAGS
multipath-tools: delete INSTALL_PROGRAM from libmpathpersist/Makefile
Makefile.inc | 7 +++---- libmpathpersist/Makefile | 4 +--- libmultipath/Makefile | 2 ++ 3 files changed, 6 insertions(+), 7 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/3 multipath-tools: install libs in a standard way
Drop full path of libmpathpersist when linking, and add a link for libmultipath.so
--- libmpathpersist/Makefile | 2 +- libmultipath/Makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
libmpathpersist/Makefile +1 -1
@@ -32,7 +32,7 @@ install: $(LIBS) $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(syslibdir) $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(man3dir) $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(incdir) - $(LN) $(DESTDIR)$(syslibdir)/$(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB) + $(LN) $(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB) $(INSTALL_PROGRAM) -m 644 mpath_persistent_reserve_in.3.gz $(DESTDIR)$(man3dir) $(INSTALL_PROGRAM) -m 644 mpath_persistent_reserve_out.3.gz $(DESTDIR)$(man3dir) $(INSTALL_PROGRAM) -m 644 mpath_persist.h $(DESTDIR)$(incdir)
libmultipath/Makefile +2 -0
@@ -63,9 +63,11 @@ install: $(INSTALL_PROGRAM) -d $(DESTDIR)$(syslibdir) $(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(syslibdir)/$(LIBS) $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(libdir) + $(LN) $(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB) uninstall: $(RM) $(DESTDIR)$(syslibdir)/$(LIBS) + $(RM) $(DESTDIR)$(syslibdir)/$(DEVLIB) clean: $(RM) core *.a *.o *.gz *.so *.so.*
Signature · 1 line
2.7.4
PATCH 2/3 multipath-tools: merge OPTFLAGS into CFLAGS
In reply to Xose Vazquez PerezOPTFLAGS is not used anywhere, but maybe it's intrusive for distributions.
--- Makefile.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
Makefile.inc +3 -4
@@ -60,10 +60,9 @@ RM = rm -f LN = ln -sf INSTALL_PROGRAM = install -OPTFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall \ - -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 - -CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" +CFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall \ + -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 \ + -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" SHARED_FLAGS = -shared %.o: %.c
Signature · 1 line
2.7.4
Re: [PATCH 2/3] multipath-tools: merge OPTFLAGS into CFLAGS
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Thanks Xose.
These changes are good with Debian.
Ritesh
Quoted 35 lines · Xose Vazquez Perez
OPTFLAGS is not used anywhere, but maybe it's intrusive for distributions.
Cc Mathieu Trudel-Lapierre <[email protected]>Cc Dragan Stancevic <[email protected]>Cc Louis Bouchard <[email protected]>Cc Ritesh Raj Sarraf <[email protected]>Cc Benjamin Marzinski <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>---
Makefile.inc | 7 +++----1 file changed, 3 insertions(+), 4 deletions(-)Makefile.inc +0
-0@@ -60,10 +60,9 @@ RM = rm -fLN = ln -sf
INSTALL_PROGRAM = installMakefile.inc +0
-3-OPTFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall \ - -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4
Makefile.inc +2
-4- -CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" +CFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall \ + -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 \
Makefile.inc +1
-0+ -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\"
Quoted 3 lines
SHARED_FLAGS = -shared
%.o: %.c
- --
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJXgMGjAAoJEKY6WKPy4XVps3IP/i8WjCdrGN/bhfpQgrt9wE09 JzYcLtqHMoUv3tT+YqJW3vpNgAn5UIujKkMogYbp5krvfG9MP4YFL0Vn4wI3EBTm XXRnaBumHzE+QYhec7WnlTLEcv1RExyvyx8V1cqX7fFCzZfQGmjmoFQDL1CPN82Z XbY0QfZWHBbpkNn57P7oCNGqnbL0IyqvVnNcTxmczALgySmp59w8WIS72kSiwMEH mAgfYZ1Feql8Q1mQu1cQN8pPcFZgK0M4r2RtZ0SiQcQVtXVCDuhWCMQzV1eEvhPL tAg78AJjnLFMDR8k9spKaGdLoyef7lTtxxUxyM6hEs08IpqxgedYD2lZvjqLNQmG QTkkDfqDRnf+qeLuJMTxRCJavAXVO1f29ukynJ2Tm98LElxDEuW9UP10hGUHGA5U KyBt/fCW9AUr0uTqO95+SCcHhNMyLuqDP5rZVJ7hCcbUtzGTbrAlQ8LIbX6BYDAc tTTn27ZqGtQkV4h49YjIzhX8csCzrYejyI6ltIuKiePIPba2QnjaRp65C0zsR4IM Gy7hvmugVIY7vMTFev9nk3qIgzu5kY6tA15Mw39o7Fc8uRyrFytmfX6Pzsv/OKCx WKNpUYf3C5rU8OOdQ73fT2dEmb++rS99SB7Z0jEAAT9OCeDp+ffB+FVtm7rhohSF lUrdul6jSduwV2pSlA5s
=NVXI
-----END PGP SIGNATURE-----
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Re: [PATCH 2/3] multipath-tools: merge OPTFLAGS into CFLAGS
In reply to Xose Vazquez PerezQuoted 24 lines · Xose Vazquez Perez
OPTFLAGS is not used anywhere, but maybe it's intrusive for distributions.
Cc Mathieu Trudel-Lapierre <[email protected]>Cc Dragan Stancevic <[email protected]>Cc Louis Bouchard <[email protected]>Cc Ritesh Raj Sarraf <[email protected]>Cc Benjamin Marzinski <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>--- Makefile.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)Makefile.inc +0
-0@@ -60,10 +60,9 @@ RM = rm -f LN = ln -sf INSTALL_PROGRAM = install
Makefile.inc RM = rm -f · line 68
Quoted 10 lines
Makefile.inc +3
-4-OPTFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall \ - -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 - -CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" +CFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall \ + -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 \ + -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" SHARED_FLAGS = -shared %.o: %.c
Nope, doesn't work for us.
Our buildsystem is using a distinct set of flags, which we need to use for the build process.
At the same time we have no idea if there are other flags (like includes etc) which are required by the build itself.
Please revert, this breaks our build.
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Teamlead Storage & Networking [email protected] +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)
Re: [PATCH 2/3] multipath-tools: merge OPTFLAGS into CFLAGS
Reverted.
Quoted 59 lines · Hannes Reinecke
Quoted 1 line · Xose Vazquez Perez
OPTFLAGS is not used anywhere, but maybe it's intrusive for
distributions.
Quoted 19 lines
Cc Mathieu Trudel-Lapierre <[email protected]>Cc Dragan Stancevic <[email protected]>Cc Louis Bouchard <[email protected]>Cc Ritesh Raj Sarraf <[email protected]>Cc Benjamin Marzinski <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>--- Makefile.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)Makefile.inc +0
-0Makefile.inc RM = rm -f · line 63
Quoted 4 lines
Makefile.inc +0
-1@@ -60,10 +60,9 @@ RM = rm -f LN = ln -sf INSTALL_PROGRAM = install -OPTFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe-Wformat-security -Wall \
Makefile.inc RM = rm -f · line 64
Quoted 1 line
Makefile.inc +0
-1- -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector--param=ssp-buffer-size=4
Makefile.inc RM = rm -f · line 66
Quoted 2 lines
Makefile.inc +0
-2- -CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\"-DRUN_DIR=\"${RUN}\"
Makefile.inc RM = rm -f · line 63
Quoted 1 line
Makefile.inc +1
-0+CFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe-Wformat-security -Wall \
Makefile.inc RM = rm -f · line 64
Quoted 1 line
Makefile.inc +1
-0+ -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector--param=ssp-buffer-size=4 \
Makefile.inc RM = rm -f · line 68
Quoted 5 lines
Makefile.inc +1
-0+ -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" SHARED_FLAGS = -shared %.o: %.cNope, doesn't work for us.
Our buildsystem is using a distinct set of flags, which we need to use for the build process.
At the same time we have no idea if there are other flags (like includes etc) which are required by the build itself.Please revert, this breaks our build.
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
[email protected] +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)
PATCH 3/3 multipath-tools: delete INSTALL_PROGRAM from libmpathpersist/Makefile
In reply to Xose Vazquez PerezIt's already taken from "include ../Makefile.inc"
--- libmpathpersist/Makefile | 2 -- 1 file changed, 2 deletions(-)
libmpathpersist/Makefile +0 -2
@@ -3,8 +3,6 @@ BUILD = glibc include ../Makefile.inc -INSTALL_PROGRAM = install - SONAME=0 DEVLIB = libmpathpersist.so LIBS = $(DEVLIB).$(SONAME)
Signature · 1 line
2.7.4
This patchset is also merged.
Thanks, notably for the rework of the libs links.
Quoted 18 lines · Xose Vazquez Perez
Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>Xose Vazquez Perez (3):
multipath-tools: install libs in a standard way
multipath-tools: merge OPTFLAGS into CFLAGS
multipath-tools: deleteINSTALL_PROGRAMfrom libmpathpersist/MakefileMakefile.inc | 7 +++---- libmpathpersist/Makefile | 4 +--- libmultipath/Makefile | 2 ++ 3 files changed, 6 insertions(+), 7 deletions(-)--
2.7.4