Skip to content

Commit 4964dca

Browse files
authored
[linux] Do not embed kernel version in CFLAGS (#314)
This change makes building on Linux reproducible, closing issue #310.
1 parent ceb40c3 commit 4964dca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

configure.ac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,10 @@ AM_CONDITIONAL([SOLARIS], [test x$LSOF_DIALECT_DIR = xsun])
242242
AM_CONDITIONAL([AIX], [test x$LSOF_DIALECT_DIR = xaix])
243243

244244
# Pass OS version
245-
LSOF_TMP=$(echo $LSOF_VSTR | sed 's/(/\\\\(/g' | sed 's/)/\\\\)/g')
246-
CFLAGS="$CFLAGS -DLSOF_VSTR=\\\"$LSOF_TMP\\\""
245+
AS_IF([test x$LSOF_DIALECT_DIR != xlinux], [
246+
LSOF_TMP=$(echo $LSOF_VSTR | sed 's/(/\\\\(/g' | sed 's/)/\\\\)/g')
247+
CFLAGS="$CFLAGS -DLSOF_VSTR=\\\"$LSOF_TMP\\\""
248+
])
247249

248250
# Pass LSOF_DIALECT/LSOF_DIALECT_DIR to Makefile.am
249251
AC_SUBST([LSOF_DIALECT])

0 commit comments

Comments
 (0)