Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 87a1129

Browse files
committedJun 6, 2024
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 <dsterba@suse.com>
1 parent ee59d10 commit 87a1129

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)
Please sign in to comment.