8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4506116 commit 0d5f773Copy full SHA for 0d5f773
src/build
@@ -11,15 +11,15 @@ else
11
ECHO_C='\c'
12
fi
13
14
-$ECHO_N "Additional directories to search for library files []: $ECHO_C"
+$ECHO_N "Additional directories to search for include and library files []: $ECHO_C"
15
read a
16
-if [ "$a." = "." ]
+if [ "$a." != "." ]
17
then
18
- ADD_LIB_DIRS=
19
-else
+ ADD_INC_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`
+ CPPFLAGS="$ADD_INC_DIRS" ; export CPPFLAGS
20
+ CFLAGS="$ADD_INC_DIRS" ; export CFLAGS
21
ADD_LIB_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`
- LDFLAGS=$ADD_LIB_DIRS
22
- export LDFLAGS
+ LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS
23
24
25
./configure
0 commit comments