Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched to xz archives for smaller size. Removed upstreamed patches. Reorganized Makefile a little bit for clarity. Build/Prepare is not useful anymore. Upstream converted the file to LF. Refreshed config. Removed -ansi option from the original CFLAGS as this was causing long long support to be missing. Removed fPIC. We have the macro $(FPIC) already used. No point in setting fpic and fPIC together. Removed pedantic -Wlong-long warnings as they are not useful. Removed -std=gnu++98. Not only is it unnecessary (it compiles against all standards), it actually results in a size increase. 75843 vs. 75222 (gcc in OpenWrt defaults to g++14). Added --gc-sections to linker flags to reduce size: 72653 vs 75222. Removed warn linker options. They have been upstreamed. Tested on Archer C7v2 and GnuBee PC1. Signed-off-by: Rosen Penev <rosenp@gmail.com>
- Loading branch information
Showing
13 changed files
with
61 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/Rules.mak | ||
+++ b/Rules.mak | ||
@@ -232,7 +232,6 @@ endif | ||
GEN_CXXFLAGS:=-nostdinc++ | ||
GEN_CXXFLAGS+=$(if $(CXXFLAG_-fvisibility-inlines-hidden),-DGCC_HASCLASSVISIBILITY) | ||
CXXFLAGS:=$(CFLAGS) | ||
-CFLAGS += -ansi | ||
|
||
LIBGCC:=$(shell $(CC) -print-libgcc-file-name) | ||
LIBGCC_DIR:=$(dir $(LIBGCC)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/bin/Makefile.in | ||
+++ b/bin/Makefile.in | ||
@@ -44,8 +44,8 @@ define do_wrapper | ||
$(Q)echo ' WRAPPER_OPTIONS="$$WRAPPER_OPTIONS -nodefaultlibs $$WRAPPER_LIBDIR -l$(LNAME) $$WRAPPER_LIBS"' >> $@.tmp | ||
$(Q)echo 'fi' >> $@.tmp | ||
$(Q)echo '' >> $@.tmp | ||
- $(Q)echo '[ -n "$$V" ] && [ $$V -gt 1 ] && echo $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR "$$@" $$WRAPPER_OPTIONS' >> $@.tmp | ||
- $(Q)echo 'exec $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR "$$@" $$WRAPPER_OPTIONS' >> $@.tmp | ||
+ $(Q)echo '[ -n "$$V" ] && [ $$V -gt 1 ] && echo $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR $$@ $$WRAPPER_OPTIONS' >> $@.tmp | ||
+ $(Q)echo 'exec $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR $$@ $$WRAPPER_OPTIONS' >> $@.tmp | ||
$(Q)echo '' >> $@.tmp | ||
$(Q)chmod 0755 $@.tmp | ||
$(Q)mv $@.tmp $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/Rules.mak | ||
+++ b/Rules.mak | ||
@@ -185,7 +185,6 @@ export UCLIBCXX_RUNTIME_PREFIX UCLIBCXX_RUNTIME_LIBDIR UCLIBCXX_RUNTIME_BINDIR U | ||
|
||
WRAPPER = $(top_builddir)bin/g++-uc | ||
OPTIMIZATION:= | ||
-PICFLAG:=-fPIC | ||
|
||
# use '-Os' optimization if available, else use -O2, allow Config to override | ||
$(eval $(call check-gcc-var,-Os)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/Rules.mak | ||
+++ b/Rules.mak | ||
@@ -200,10 +200,6 @@ $(eval $(call check-gxx-var,-std=gnu++14)) | ||
$(eval $(call check-gxx-var,-Wno-sized-deallocation)) | ||
$(eval $(call check-gxx-var,-Wno-tautological-compare)) | ||
|
||
-# Add a bunch of extra pedantic annoyingly strict checks | ||
-XWARNINGS=$(call qstrip,$(UCLIBCXX_WARNINGS)) -Wno-trigraphs -pedantic | ||
-CPU_CFLAGS=$(call qstrip,$(CPU_CFLAGS-y)) | ||
- | ||
# Some nice CFLAGS to work with | ||
GEN_CFLAGS:=-fno-builtin | ||
CFLAGS:=$(XWARNINGS) $(CPU_CFLAGS) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
114 changes: 0 additions & 114 deletions
114
package/libs/uclibc++/patches/030-memory_corruption_fix.patch
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.