Browse Source

Merge pull request #12295 from neheb/ola2

ola: fix compilation with GCC4
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
9bf4d0f6b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 21 deletions
  1. +3
    -0
      net/ola/Makefile
  2. +0
    -21
      net/ola/patches/050-always-force-gnu++11.patch

+ 3
- 0
net/ola/Makefile View File

@ -68,6 +68,9 @@ HOST_CONFIGURE_ARGS += \
HOST_CPPFLAGS += \
-std=gnu++11
CONFIGURE_VARS += \
require_gnu_plus_plus_11=yes
HOST_LDFLAGS += -Wl,-rpath="$(STAGING_DIR_HOSTPKG)/lib"
TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm)


+ 0
- 21
net/ola/patches/050-always-force-gnu++11.patch View File

@ -1,21 +0,0 @@
Index: ola-0.10.6/configure.ac
===================================================================
--- ola-0.10.6.orig/configure.ac
+++ ola-0.10.6/configure.ac
@@ -72,8 +72,6 @@ AM_CONDITIONAL([SUPPORTS_GNU_PLUS_PLUS_1
require_gnu_plus_plus_11="no"
AS_IF([test "x$ac_cv_gnu_plus_plus_11" = xyes],
[AS_IF([test "x$ac_cv_gnu_plus_plus_98" = xyes],
- [AS_IF([test "x$enable_unittests" = xno],
- [CXXFLAGS="$CXXFLAGS -std=gnu++98"],
[PKG_CHECK_MODULES([CPPUNIT1], [cppunit < 1.14.0],
[CXXFLAGS="$CXXFLAGS -std=gnu++98"],
[PKG_CHECK_MODULES([CPPUNIT2], [cppunit >= 1.14.0],
@@ -81,7 +79,6 @@ AS_IF([test "x$ac_cv_gnu_plus_plus_11" =
[AC_MSG_WARN([OLA requires std::auto_ptr support.])])
])
])
- ])
])
AS_IF([test "x$require_gnu_plus_plus_11" = xyes],
[CXXFLAGS="$CXXFLAGS -std=gnu++11"])

Loading…
Cancel
Save