|
@@ -53,6 +53,11 @@ ifeq ($(BR2_ENABLE_DEBUG),y)
|
|
GLIBC_EXTRA_CFLAGS += -g
|
|
GLIBC_EXTRA_CFLAGS += -g
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+# glibc explicitly requires compile barriers between files
|
|
|
|
+ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_7),y)
|
|
|
|
+GLIBC_EXTRA_CFLAGS += -fno-lto
|
|
|
|
+endif
|
|
|
|
+
|
|
# The stubs.h header is not installed by install-headers, but is
|
|
# The stubs.h header is not installed by install-headers, but is
|
|
# needed for the gcc build. An empty stubs.h will work, as explained
|
|
# needed for the gcc build. An empty stubs.h will work, as explained
|
|
# in http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html. The same trick
|
|
# in http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html. The same trick
|