Skip to content

Commit

Permalink
[linux] Do not embed kernel version in CFLAGS
Browse files Browse the repository at this point in the history
This change makes building on Linux reproducible, closing issue #310.
  • Loading branch information
OstCollector committed May 1, 2024
1 parent ceb40c3 commit a7930dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,10 @@ AM_CONDITIONAL([SOLARIS], [test x$LSOF_DIALECT_DIR = xsun])
AM_CONDITIONAL([AIX], [test x$LSOF_DIALECT_DIR = xaix])

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

# Pass LSOF_DIALECT/LSOF_DIALECT_DIR to Makefile.am
AC_SUBST([LSOF_DIALECT])
Expand Down

0 comments on commit a7930dc

Please sign in to comment.