titola / incudine

Mirror of Incudine's official repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Foreign directories not searched properly

metayan opened this issue · comments

When building, noticed that some of the directories handed to cc are wrong:

cc -O3 -Wall -I/usr/local/include -D__INCUDINE_USE_64_BIT_SAMPLE__ -DLITTLE_ENDIAN -D__INCUDINE_SCHED_RR__ -dynamic -bundle -flat_namespace -undefined suppress -L"(/Users/xxx/lib/ /opt/local/lib/ /usr/local/lib/ /usr/lib/)" -L"/Applications/portacle/" -L"NIL" -L"NIL" -o "/src/scm/lisp/incudine/src/libincudine.dylib" "/src/scm/lisp/incudine/src/tlsf.o" "/src/scm/lisp/incudine/src/util.o" "/src/scm/lisp/incudine/src/ringbuffer.o" "/src/scm/lisp/incudine/src/osc.o" -lpthread -lm
ld: warning: directory not found for option '-L(/Users/xxx/lib/ /opt/local/lib/ /usr/local/lib/ /usr/lib/)'
ld: warning: directory not found for option '-LNIL'
ld: warning: directory not found for option '-LNIL'

The fix in #4 generates the following, so the correct directories are searched:

cc -O3 -Wall -D__INCUDINE_USE_64_BIT_SAMPLE__ -DLITTLE_ENDIAN -D__INCUDINE_SCHED_RR__ -DTLSF_STATISTIC=1 -DBLOCK_ALIGN=32 -o "/src/scm/lisp/incudine/src/tlsf.o" -c "/src/scm/lisp/incudine/contrib/tlsf/src/tlsf.c"
cc -O3 -Wall -D__INCUDINE_USE_64_BIT_SAMPLE__ -DLITTLE_ENDIAN -D__INCUDINE_SCHED_RR__ -dynamic -bundle -flat_namespace -undefined suppress -L"/Applications/portacle/" -L"/Users/xxx/lib/" -L"/opt/local/lib/" -L"/usr/local/lib/" -L"/usr/lib/" -o "/src/scm/lisp/incudine/src/libincudine.dylib" "/src/scm/lisp/incudine/src/tlsf.o" "/src/scm/lisp/incudine/src/util.o" "/src/scm/lisp/incudine/src/ringbuffer.o" "/src/scm/lisp/incudine/src/osc.o" -lpthread -lm
ld: warning: directory not found for option '-L/Users/xxx/lib/'
ld: warning: directory not found for option '-L/opt/local/lib/'