aboutsummaryrefslogtreecommitdiff
path: root/mk/lib.mk
diff options
context:
space:
mode:
authorWill Miles <wmiles@sgl.com>2015-01-22 09:43:28 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-01-24 13:48:53 -0600
commit3f80f22e22ec16ed517397fd303c3df99f9340fc (patch)
treef76bee821407e2ec9d3881a3bb6fce79364c814c /mk/lib.mk
parent8250ac94dfc6156075081e0e2d0986cb51b3098d (diff)
Prioritize local includes and libraries
This fixes #35.
Diffstat (limited to 'mk/lib.mk')
-rw-r--r--mk/lib.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/lib.mk b/mk/lib.mk
index 1cf006c4..61a79ca9 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}