Skip to content

Commit

Permalink
bulid: use AC_USE_SYSTEM_EXTENSIONS instead of defining _GNU_SOURCE
Browse files Browse the repository at this point in the history
Don't define _GNU_SOURCE on the command line. Instead, use
AC_USE_SYSTEM_EXTENSIONS which embeds it in "include/config.h".
  • Loading branch information
thom311 committed May 29, 2024
1 parent cf47571 commit bfe1151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ default_includes = \

lib_cppflags = \
$(warn_cppflags) \
-D_GNU_SOURCE \
-DSYSCONFDIR=\"$(sysconfdir)/libnl\" \
$(default_includes) \
$(NULL)
Expand Down Expand Up @@ -709,7 +708,6 @@ EXTRA_src_lib_libnl_cli_3_la_DEPENDENCIES = \
libnl-cli-3.sym
src_lib_libnl_cli_3_la_CPPFLAGS = \
$(warn_cppflags) \
-D_GNU_SOURCE \
-DPKGLIBDIR=\"$(pkglibdir)\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
$(default_includes) \
Expand All @@ -729,7 +727,6 @@ src_lib_libnl_cli_3_la_LIBADD = \

src_cppflags = \
$(warn_cppflags) \
-D_GNU_SOURCE \
-DSYSCONFDIR=\"$(sysconfdir)/libnl\" \
$(default_includes) \
$(NULL)
Expand Down Expand Up @@ -909,7 +906,6 @@ src_nl_util_addr_LDADD = $(src_ldadd)

tests_cppflags = \
$(warn_cppflags) \
-D_GNU_SOURCE \
-DSYSCONFDIR=\"$(sysconfdir)/libnl\" \
$(default_includes) \
$(NULL)
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ AC_SUBST(LT_REVISION)
LT_AGE=libnl_lt_age
AC_SUBST(LT_AGE)

AC_USE_SYSTEM_EXTENSIONS

AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
Expand Down

0 comments on commit bfe1151

Please sign in to comment.