Skip to content

Commit 00f71b5

Browse files
committed
configure: correctly set up CFLAGS while setting up libarchive
Fix a regression where the debugging options ("-g -O") got dropped while setting up the include path for libarchive. Fixes: c54a2e8 ("Use the libarchive library reported by pkg-config") Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 705a51d commit 00f71b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13984,7 +13984,7 @@ printf "%s\n" "yes" >&6; }
1398413984

1398513985
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pkg-config found libarchive" >&5
1398613986
printf "%s\n" "pkg-config found libarchive" >&6; }
13987-
CFLAGS="$ARCHIVE_CFLAGS $CPPFLAGS"
13987+
CFLAGS="$ARCHIVE_CFLAGS $CFLAGS"
1398813988

1398913989
fi
1399013990
if test -n "$ARCHIVE_LIBS" ; then

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ then
13431343
PKG_CHECK_MODULES([ARCHIVE],[libarchive],
13441344
[
13451345
AC_MSG_RESULT([pkg-config found libarchive])
1346-
CFLAGS="$ARCHIVE_CFLAGS $CPPFLAGS"
1346+
CFLAGS="$ARCHIVE_CFLAGS $CFLAGS"
13471347
],[
13481348
AC_CHECK_LIB(archive, archive_read_new, [ARCHIVE_LIBS=-larchive])
13491349
])

0 commit comments

Comments
 (0)