Skip to content

Commit

Permalink
"pkg-config --cflags" may be empty
Browse files Browse the repository at this point in the history
For example, Apache Arrow C++ is installed in system directory.
  • Loading branch information
kou committed Dec 19, 2022
1 parent b26892d commit 3b9c72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r/configure
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ else
PKGCONFIG_DIRS=`pkg-config --libs-only-L --silence-errors ${PKG_CONFIG_NAME}`
fi

if [ "$PKGCONFIG_CFLAGS" ] && [ "$PKGCONFIG_LIBS" ]; then
if [ "$PKGCONFIG_LIBS" != "" ]; then
FOUND_LIB_DIR=`echo $PKGCONFIG_DIRS | sed -e 's/^-L//'`
echo "*** Arrow C++ libraries found via pkg-config at $FOUND_LIB_DIR"
PKG_CFLAGS="$PKGCONFIG_CFLAGS $PKG_CFLAGS"
Expand Down

0 comments on commit 3b9c72d

Please sign in to comment.