Skip to content

Commit 4b8266c

Browse files
committed
btrfs-progs: build: use -O2 by default
There's no obvious reason why there's -O1 instead -O2 which is commonly used on distro builds. -O1 was enabled in c1690a3 ("Switch to -O1 for optimizations to enable FORTIFY_SOURCE") for the fortify checks. Signed-off-by: David Sterba <[email protected]>
1 parent e5b6c38 commit 4b8266c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BTRFS_UTIL_VERSION_MAJOR=`sed -rn 's/^\#define BTRFS_UTIL_VERSION_MAJOR ([0-9])+
2424
BTRFS_UTIL_VERSION_MINOR=`sed -rn 's/^\#define BTRFS_UTIL_VERSION_MINOR ([0-9])+$/\1/p' libbtrfsutil/btrfsutil.h`
2525
BTRFS_UTIL_VERSION_PATCH=`sed -rn 's/^\#define BTRFS_UTIL_VERSION_PATCH ([0-9])+$/\1/p' libbtrfsutil/btrfsutil.h`
2626

27-
CFLAGS=${CFLAGS:-"-g -O1 -Wall -D_FORTIFY_SOURCE=2"}
27+
CFLAGS=${CFLAGS:-"-g -O2 -Wall -D_FORTIFY_SOURCE=2"}
2828
AC_SUBST([CFLAGS])
2929

3030
AC_PREREQ([2.60])

0 commit comments

Comments
 (0)