gnublin
[projects.git] / tools / make / c_configure.sh
index 011d048..9f21ef1 100755 (executable)
@@ -66,9 +66,19 @@ function add_library {
 # parameter:
 # $1: main directory
 # $2: library name (without l or lib )
+# $3: library path (optional)
 
        src=$(pwd)
        echo "EXTLIB += -l$2" >> $1/make.pre
+       if [ -n "$3" ]
+       then
+               lib_path=$3
+               if [ ${lib_path:0:1} != "/" ]
+               then
+                       lib_path="$src/$lib_path"
+               fi
+               echo "LDFLAGS += -L$lib_path" >> $1/make.pre
+       fi
 }
 
 function append_library {