From: "Mike Frysinger" <vapier.adi@gmail.com>
To: linux-sparse@vger.kernel.org
Subject: [patch] improve flag handling
Date: Sat, 4 Aug 2007 01:02:18 -0400 [thread overview]
Message-ID: <8bd0f97a0708032202r2615f659v514667337c809d05@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 158 bytes --]
the attached patch tweaks the makefile so that it respects CFLAGS set
in the environment and it makes sure to link the shared libsparse with
$(LDFLAGS)
-mike
[-- Attachment #2: sparse-9999-build.patch --]
[-- Type: application/octet-stream, Size: 718 bytes --]
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
diff --git a/Makefile b/Makefile
index 97bfe3b..1e06794 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,10 @@ VERSION=0.3
OS=linux
-CC=gcc
-CFLAGS=-O2 -finline-functions -g -Wall -Wwrite-strings
-LDFLAGS=-g
+CC ?= gcc
+CFLAGS ?= -O2 -finline-functions -g
+CFLAGS += -Wall -Wwrite-strings
+LDFLAGS ?= -g
AR=ar
HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 && echo 'yes')
@@ -129,7 +130,7 @@ $(LIB_FILE): $(LIB_OBJS)
$(QUIET_AR)$(AR) rcs $@ $(LIB_OBJS)
$(SLIB_FILE): $(LIB_OBJS)
- $(QUIET_LINK)$(CC) -shared -o $@ $(LIB_OBJS)
+ $(QUIET_LINK)$(CC) $(LDFLAGS) -Wl,-soname,$@ -shared -o $@ $(LIB_OBJS)
evaluate.o: $(LIB_H)
expression.o: $(LIB_H)
next reply other threads:[~2007-08-04 5:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-04 5:02 Mike Frysinger [this message]
2007-08-04 20:50 ` [patch] improve flag handling Josh Triplett
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=8bd0f97a0708032202r2615f659v514667337c809d05@mail.gmail.com \
--to=vapier.adi@gmail.com \
--cc=linux-sparse@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).