* [gentoo-commits] proj/openrc:master commit in: mk/, src/rc/, src/libeinfo/, src/librc/
@ 2015-01-24 20:21 William Hubbs
0 siblings, 0 replies; only message in thread
From: William Hubbs @ 2015-01-24 20:21 UTC (permalink / raw
To: gentoo-commits
commit: 3f80f22e22ec16ed517397fd303c3df99f9340fc
Author: Will Miles <wmiles <AT> sgl <DOT> com>
AuthorDate: Thu Jan 22 14:43:28 2015 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Jan 24 19:48:53 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=3f80f22e
Prioritize local includes and libraries
This fixes #35.
---
mk/depend.mk | 2 +-
mk/lib.mk | 6 +++---
mk/prog.mk | 6 +++---
src/libeinfo/Makefile | 2 +-
src/librc/Makefile | 2 +-
src/rc/Makefile | 4 ++--
6 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/mk/depend.mk b/mk/depend.mk
index 44af378..873b0ca 100644
--- a/mk/depend.mk
+++ b/mk/depend.mk
@@ -6,7 +6,7 @@ IGNOREFILES+= .depend
.depend: ${SRCS}
rm -f .depend
- ${CC} ${CPPFLAGS} -MM ${SRCS} > .depend
+ ${CC} ${LOCAL_CPPFLAGS} ${CPPFLAGS} -MM ${SRCS} > .depend
depend: .depend extra_depend
diff --git a/mk/lib.mk b/mk/lib.mk
index 1cf006c..61a79ca 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -21,10 +21,10 @@ _LIBS+= ${SHLIB_NAME}
CLEANFILES+= ${OBJS} ${SOBJS} ${_LIBS} ${SHLIB_LINK}
%.o: %.c
- ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
+ ${CC} ${LOCAL_CFLAGS} ${LOCAL_CPPFLAGS} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
%.So: %.c
- ${CC} ${PICFLAG} -DPIC ${CPPFLAGS} ${CFLAGS} -c $< -o $@
+ ${CC} ${PICFLAG} -DPIC ${LOCAL_CFLAGS} ${LOCAL_CPPFLAGS} ${CPPFLAGS} ${CFLAGS} -c $< -o $@
all: depend ${_LIBS}
@@ -40,7 +40,7 @@ ${SHLIB_NAME}: ${SOBJS}
@${ECHO} building shared library $@
@rm -f $@ ${SHLIB_LINK}
@ln -fs $@ ${SHLIB_LINK}
- ${CC} ${CFLAGS} ${LDFLAGS} -shared -Wl,-x \
+ ${CC} ${LOCAL_CFLAGS} ${CFLAGS} ${LOCAL_LDFLAGS} ${LDFLAGS} -shared -Wl,-x \
-o $@ -Wl,-soname,${SONAME} \
${SOBJS} ${LDADD}
diff --git a/mk/prog.mk b/mk/prog.mk
index d4c3252..1c829b1 100644
--- a/mk/prog.mk
+++ b/mk/prog.mk
@@ -1,4 +1,4 @@
-# rules to build a library
+# rules to build a program
# based on FreeBSD's bsd.prog.mk
# Copyright (c) 2008 Roy Marples <roy@marples.name>
@@ -25,10 +25,10 @@ CLEANFILES+= ${OBJS} ${PROG}
all: depend ${PROG}
%.o: %.c
- ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
+ ${CC} ${LOCAL_CFLAGS} ${LOCAL_CPPFLAGS} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
${PROG}: ${SCRIPTS} ${OBJS}
- ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LDADD}
+ ${CC} ${LOCAL_CFLAGS} ${LOCAL_LDFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LDADD}
clean:
rm -f ${CLEANFILES}
diff --git a/src/libeinfo/Makefile b/src/libeinfo/Makefile
index ec756b4..e6ccb65 100644
--- a/src/libeinfo/Makefile
+++ b/src/libeinfo/Makefile
@@ -4,7 +4,7 @@ SRCS= libeinfo.c
INCS= einfo.h
VERSION_MAP= einfo.map
-CPPFLAGS+= -I../includes
+LOCAL_CPPFLAGS+= -I../includes
MK= ../../mk
include ${MK}/lib.mk
diff --git a/src/librc/Makefile b/src/librc/Makefile
index 7307560..08c599e 100644
--- a/src/librc/Makefile
+++ b/src/librc/Makefile
@@ -7,7 +7,7 @@ VERSION_MAP= rc.map
LDADD+= ${LIBKVM}
-CPPFLAGS+= -I../includes
+LOCAL_CPPFLAGS+= -I../includes
MK= ../../mk
include ${MK}/lib.mk
diff --git a/src/rc/Makefile b/src/rc/Makefile
index d2b2ac5..fc88ff2 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -35,8 +35,8 @@ RC_SBINLINKS= mark_service_starting mark_service_started \
ALL_LINKS= ${BINLINKS} ${SBINLINKS} ${RC_BINLINKS} ${RC_SBINLINKS}
CLEANFILES+= ${ALL_LINKS}
-CPPFLAGS+= -I../includes -I../librc -I../libeinfo
-LDFLAGS+= -L../librc -L../libeinfo
+LOCAL_CPPFLAGS=-I../includes -I../librc -I../libeinfo
+LOCAL_LDFLAGS=-L../librc -L../libeinfo
LDADD+= -lutil -lrc -leinfo
include ../../Makefile.inc
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-24 20:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-24 20:21 [gentoo-commits] proj/openrc:master commit in: mk/, src/rc/, src/libeinfo/, src/librc/ William Hubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox