Skip to content

Commit a902a78

Browse files
build: fix concat macro used in flag manipulations
Signed-off-by: Ar Rakin <rakinar2@onesoftnet.eu.org>
1 parent 4347ae1 commit a902a78

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

configure.ac

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ AC_ARG_ENABLE([debug],
5050
AC_ARG_ENABLE([optimizations],
5151
[AS_HELP_STRING([--enable-optimizations], [Enable the highest optimization flags (default: no)])],
5252
[
53-
new_cflags="-Ofast -flto -march=native -z now"
54-
new_ldflags="-flto -march=native -z now"
55-
56-
CONCAT_SPACED_STRING([CFLAGS], [$new_cflags])
57-
CONCAT_SPACED_STRING([LDFLAGS], [$new_ldflags])
53+
CONCAT_SPACED_STRING([CFLAGS], [-Ofast -flto -march=native -z now])
54+
CONCAT_SPACED_STRING([LDFLAGS], [-flto -march=native -z now])
5855
5956
enable_optimizations=yes
6057
],

m4/utils.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ AC_DEFUN([PRINT_SUMMARY], [
3737
])
3838

3939
AC_DEFUN([CONCAT_SPACED_STRING], [
40-
AS_IF([test -n "$$1"], [$1="$1 $2"], [$1="$2"])
40+
AS_IF([test -n "$$1"], [$1="$$1 $2"], [$1="$2"])
4141
])

0 commit comments

Comments
 (0)