From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schwarzott Date: Wed, 25 Apr 2007 08:38:30 +0000 Subject: [PATCH] change Makefile to respect CFLAGS/LDFLAGS Message-Id: <200704251038.30238.zzam@gentoo.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_GOxLGwNhCxLj4UH" List-Id: To: linux-hotplug@vger.kernel.org --Boundary-00=_GOxLGwNhCxLj4UH Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! The attached patch changes the Makefile to not ignore CFLAGS/LDFLAGS from environment. Was there any strong reason to do so? And second: Any reason to forbid using "make -j2" or higher? Missing Makefile dependencies? This is related to this bugzilla request: http://bugs.gentoo.org/show_bug.cgi?id=175893 Matthias -- Matthias Schwarzott (zzam) --Boundary-00=_GOxLGwNhCxLj4UH Content-Type: text/x-diff; charset="utf-8"; name="udev-respect-CFLAGS.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="udev-respect-CFLAGS.diff" diff --git a/Makefile b/Makefile index a7a2cbf..072ae7f 100644 --- a/Makefile +++ b/Makefile @@ -113,13 +113,13 @@ LD = $(CROSS_COMPILE)gcc AR = $(CROSS_COMPILE)ar RANLIB = $(CROSS_COMPILE)ranlib -CFLAGS = -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 +CFLAGS += -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 WARNINGS = -Wstrict-prototypes -Wsign-compare -Wshadow \ -Wchar-subscripts -Wmissing-declarations -Wnested-externs \ -Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes CFLAGS += $(WARNINGS) -LDFLAGS = -Wl,-warn-common +LDFLAGS += -Wl,-warn-common OPTFLAGS = -Os CFLAGS += $(OPTFLAGS) --Boundary-00=_GOxLGwNhCxLj4UH Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --Boundary-00=_GOxLGwNhCxLj4UH Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel --Boundary-00=_GOxLGwNhCxLj4UH--