Add in -Iobj flag where required.

This commit is contained in:
Laurence Withers 2006-08-10 17:02:05 +01:00
parent ac9aa2b609
commit 54657eb084
4 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ then
then then
echo " Compiling..." echo " Compiling..."
do_cmd ${CXX} ${CFLAGS} -o "${@CNAME@}" ${SRC} ${EXTRAS} || return 1 do_cmd ${CXX} ${CFLAGS} -Iobj -o "${@CNAME@}" ${SRC} ${EXTRAS} || return 1
print_success "Application built" print_success "Application built"
else else

View File

@ -31,7 +31,7 @@ then
echo " Compiling" echo " Compiling"
SONAME="${@CNAME@_BASE}.so.${SOMAJOR}.${SOMINOR}" SONAME="${@CNAME@_BASE}.so.${SOMAJOR}.${SOMINOR}"
do_cmd ${CXX} ${CFLAGS} -shared -fpic -o "${@CNAME@}" \ do_cmd ${CXX} ${CFLAGS} -Iobj -shared -fpic -o "${@CNAME@}" \
-Wl,-soname,${SONAME} \ -Wl,-soname,${SONAME} \
${SRC} ${SO_EXTRA} || return 1 ${SRC} ${SO_EXTRA} || return 1

View File

@ -26,7 +26,7 @@ then
then then
echo " Compiling..." echo " Compiling..."
do_cmd ${CC} ${CFLAGS} -o "${@CNAME@}" ${SRC} ${EXTRAS} || return 1 do_cmd ${CC} ${CFLAGS} -I obj -o "${@CNAME@}" ${SRC} ${EXTRAS} || return 1
print_success "Application built" print_success "Application built"
else else

View File

@ -31,7 +31,7 @@ then
echo " Compiling" echo " Compiling"
SONAME="${@CNAME@_BASE}.so.${SOMAJOR}.${SOMINOR}" SONAME="${@CNAME@_BASE}.so.${SOMAJOR}.${SOMINOR}"
do_cmd ${CC} ${CFLAGS} -shared -fpic -o "${@CNAME@}" \ do_cmd ${CC} ${CFLAGS} -Iobj -shared -fpic -o "${@CNAME@}" \
-Wl,-soname,${SONAME} \ -Wl,-soname,${SONAME} \
${SRC} ${SO_EXTRA} || return 1 ${SRC} ${SO_EXTRA} || return 1