* [patch] improve flag handling
@ 2007-08-04 5:02 Mike Frysinger
2007-08-04 20:50 ` Josh Triplett
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2007-08-04 5:02 UTC (permalink / raw)
To: linux-sparse
[-- 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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] improve flag handling
2007-08-04 5:02 [patch] improve flag handling Mike Frysinger
@ 2007-08-04 20:50 ` Josh Triplett
0 siblings, 0 replies; 2+ messages in thread
From: Josh Triplett @ 2007-08-04 20:50 UTC (permalink / raw)
To: Mike Frysinger; +Cc: linux-sparse
[-- Attachment #1: Type: text/plain, Size: 234 bytes --]
Mike Frysinger wrote:
> 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
Applied, thanks!
- Josh Triplett
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-04 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-04 5:02 [patch] improve flag handling Mike Frysinger
2007-08-04 20:50 ` Josh Triplett
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).