diff options
author | Will Miles <wmiles@sgl.com> | 2015-01-22 09:43:28 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-01-24 13:48:53 -0600 |
commit | 3f80f22e22ec16ed517397fd303c3df99f9340fc (patch) | |
tree | f76bee821407e2ec9d3881a3bb6fce79364c814c /mk/lib.mk | |
parent | 8250ac94dfc6156075081e0e2d0986cb51b3098d (diff) |
Prioritize local includes and libraries
This fixes #35.
Diffstat (limited to 'mk/lib.mk')
-rw-r--r-- | mk/lib.mk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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} |