# HG changeset patch # User truelight # Date 2007-02-08 12:52:25 # Node ID a497bbf17f00d9ee2e90f06ca90f3571c6cf0997 # Parent 56b708e464d2066605b9426551b45aa9f1d6d1f5 (svn r8632) [PSP] -Add: added include and lib to CFLAGS / LDFLAGS based on the SDK dir from psp-config -Fix: disabled pthread for PSP diff --git a/config.lib b/config.lib --- a/config.lib +++ b/config.lib @@ -654,7 +654,7 @@ make_cflags_and_ldflags() { LIBS="$LIBS -lws2_32 -lwinmm -lgdi32 -ldxguid -lole32" fi - if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ]; then + if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ] && [ "$os" != "PSP" ]; then LIBS="$LIBS -lpthread" LIBS="$LIBS -lrt" fi @@ -665,6 +665,10 @@ make_cflags_and_ldflags() { if [ "$os" = "WINCE" ]; then LIBS="$LIBS -lcoredll -lcorelibc -laygshell -lws2 -e WinMainCRTStartup" fi + if [ "$os" = "PSP" ]; then + CFLAGS="$CFLAGS -I`$psp_config -p`/include" + LDFLAGS="$LDFLAGS -L`$psp_config -p`/lib" + fi if [ "$os" = "MORPHOS" ]; then # -Wstrict-prototypes generates much noise because of system headers