f0b65bd90c
Back in commit a662ff7e79
("package/argp-standalone: Fix build with c99 compilers"), we fixed
the build of argp-standalone with compilers defaulting to C99 inline
semantics, i.e starting from gcc 5.x.
This was done as part of a patch that used "inline" instead of "extern
inline". However, using "inline" once again broke the build with gcc
7.x. To fix this, revert back to using just "extern inline" (hence
removing a patch of patch 0003-fix_build_with_c99_compilers.patch) and
instead use -fgnu89-inline in the CFLAGS.
See https://gcc.gnu.org/gcc-5/porting_to.html for more details.
Fixes:
http://autobuild.buildroot.net/results/a9cedc54829b7bd2dd7ae6ff2bd6c6db242f1c35/
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
[Thomas: also drop the patch of
0003-fix_build_with_c99_compilers.patch that is no longer needed.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
26 lines
812 B
Makefile
26 lines
812 B
Makefile
################################################################################
|
|
#
|
|
# argp-standalone
|
|
#
|
|
################################################################################
|
|
|
|
ARGP_STANDALONE_VERSION = 1.3
|
|
ARGP_STANDALONE_SITE = http://www.lysator.liu.se/~nisse/archive
|
|
ARGP_STANDALONE_INSTALL_STAGING = YES
|
|
ARGP_STANDALONE_LICENSE = LGPL-2.0+
|
|
|
|
ARGP_STANDALONE_CONF_ENV = \
|
|
CFLAGS="$(TARGET_CFLAGS) -fPIC -fgnu89-inline"
|
|
|
|
define ARGP_STANDALONE_INSTALL_STAGING_CMDS
|
|
$(INSTALL) -D $(@D)/libargp.a $(STAGING_DIR)/usr/lib/libargp.a
|
|
$(INSTALL) -D $(@D)/argp.h $(STAGING_DIR)/usr/include/argp.h
|
|
endef
|
|
|
|
define ARGP_STANDALONE_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D $(@D)/libargp.a $(TARGET_DIR)/usr/lib/libargp.a
|
|
$(INSTALL) -D $(@D)/argp.h $(TARGET_DIR)/usr/include/argp.h
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|