From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] change Makefile to respect CFLAGS/LDFLAGS
Date: Wed, 25 Apr 2007 08:38:30 +0000 [thread overview]
Message-ID: <200704251038.30238.zzam@gentoo.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 358 bytes --]
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)
[-- Attachment #2: udev-respect-CFLAGS.diff --]
[-- Type: text/x-diff, Size: 644 bytes --]
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)
[-- Attachment #3: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
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/
[-- Attachment #4: Type: text/plain, Size: 226 bytes --]
_______________________________________________
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
next reply other threads:[~2007-04-25 8:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 8:38 Matthias Schwarzott [this message]
2007-04-25 21:34 ` [PATCH] change Makefile to respect CFLAGS/LDFLAGS Kay Sievers
2007-04-27 11:39 ` Matthias Schwarzott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200704251038.30238.zzam@gentoo.org \
--to=zzam@gentoo.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).