Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame^] | 1 | From e826206c58bbaa1c256f55b103d5eb7b0182f152 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 15 Jan 2023 22:05:53 -0800 |
| 4 | Subject: [PATCH 2/2] make: Do not enforce c99 |
| 5 | |
| 6 | Latest gcc/clang from OE defaults to c11 or newer and stickly to c99 |
| 7 | means we can not use _AlignOf |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | Misc/Makefile.am | 4 +--- |
| 14 | Port-linux/Makefile.am | 1 - |
| 15 | 2 files changed, 1 insertion(+), 4 deletions(-) |
| 16 | |
| 17 | diff --git a/Misc/Makefile.am b/Misc/Makefile.am |
| 18 | index d881525a..8d71d2d4 100644 |
| 19 | --- a/Misc/Makefile.am |
| 20 | +++ b/Misc/Makefile.am |
| 21 | @@ -6,8 +6,6 @@ endif |
| 22 | |
| 23 | noinst_LIBRARIES = libMisc.a |
| 24 | |
| 25 | -libMisc_a_CFLAGS = -std=c99 |
| 26 | - |
| 27 | libMisc_a_CPPFLAGS = -I$(top_srcdir) |
| 28 | |
| 29 | libMisc_a_SOURCES = addrpack.c |
| 30 | @@ -27,4 +25,4 @@ libMisc_a_SOURCES += lowlevel-posix.c |
| 31 | |
| 32 | libMisc_a_SOURCES += hmac-sha-md5.h hmac-sha-md5.c |
| 33 | libMisc_a_SOURCES += md5-coreutils.c md5.h |
| 34 | -libMisc_a_SOURCES += sha1.c sha1.h sha256.c sha256.h sha512.c sha512.h |
| 35 | \ No newline at end of file |
| 36 | +libMisc_a_SOURCES += sha1.c sha1.h sha256.c sha256.h sha512.c sha512.h |
| 37 | diff --git a/Port-linux/Makefile.am b/Port-linux/Makefile.am |
| 38 | index 72b0a5e3..635998ea 100644 |
| 39 | --- a/Port-linux/Makefile.am |
| 40 | +++ b/Port-linux/Makefile.am |
| 41 | @@ -1,6 +1,5 @@ |
| 42 | noinst_LIBRARIES = libLowLevel.a |
| 43 | |
| 44 | -libLowLevel_a_CFLAGS = -std=c99 |
| 45 | libLowLevel_a_CPPFLAGS = -I$(top_srcdir)/Misc |
| 46 | |
| 47 | libLowLevel_a_SOURCES = daemon.cpp daemon.h ethtool-kernel.h ethtool-local.h interface.c interface.h ip_common.h iproute.c libnetlink.c libnetlink.h ll_map.c ll_map.h ll_types.c lowlevel-linux.c lowlevel-linux-link-state.c lowlevel-options-linux.c rtm_map.h rt_names.h utils.c utils.h |
| 48 | -- |
| 49 | 2.39.0 |
| 50 | |