Skip to content

Commit 0d5f773

Browse files
committed
Update to handle include search paths.
1 parent 4506116 commit 0d5f773

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/build

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ else
1111
ECHO_C='\c'
1212
fi
1313

14-
$ECHO_N "Additional directories to search for library files []: $ECHO_C"
14+
$ECHO_N "Additional directories to search for include and library files []: $ECHO_C"
1515
read a
16-
if [ "$a." = "." ]
16+
if [ "$a." != "." ]
1717
then
18-
ADD_LIB_DIRS=
19-
else
18+
ADD_INC_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`
19+
CPPFLAGS="$ADD_INC_DIRS" ; export CPPFLAGS
20+
CFLAGS="$ADD_INC_DIRS" ; export CFLAGS
2021
ADD_LIB_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`
21-
LDFLAGS=$ADD_LIB_DIRS
22-
export LDFLAGS
22+
LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS
2323
fi
2424

2525
./configure

0 commit comments

Comments
 (0)