|
|
@ -53,11 +53,13 @@ endef
|
|
|
|
|
|
|
|
|
|
|
|
define $(PKG)_POST_BUILD
|
|
|
|
define $(PKG)_POST_BUILD
|
|
|
|
# TODO: find a way to configure the installation of these correctly
|
|
|
|
# TODO: find a way to configure the installation of these correctly
|
|
|
|
rm -f $(addprefix $(PREFIX)/$(TARGET)/bin/, c++ g++ gcc gfortran)
|
|
|
|
# ignore rm failure as parallel build may have cleaned up, but
|
|
|
|
-mv '$(PREFIX)/lib/gcc/$(TARGET)/lib/'* '$(PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/'
|
|
|
|
# don't wildcard all libs so future additions will be detected
|
|
|
|
-mv '$(PREFIX)/lib/gcc/$(TARGET)/'*.dll '$(PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/'
|
|
|
|
$(and $(BUILD_SHARED),
|
|
|
|
-cp '$(PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/'*.dll '$(PREFIX)/$(TARGET)/bin/'
|
|
|
|
mv -v '$(PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/'*.dll '$(PREFIX)/$(TARGET)/bin/gcc-$($(PKG)_VERSION)/'
|
|
|
|
-cp '$(PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/'*.dll.a '$(PREFIX)/$(TARGET)/lib/'
|
|
|
|
-rm -v '$(PREFIX)/lib/gcc/$(TARGET)/'libgcc_s*.dll
|
|
|
|
|
|
|
|
-rm -v '$(PREFIX)/lib/gcc/$(TARGET)/lib/'libgcc_s*.a
|
|
|
|
|
|
|
|
-rmdir '$(PREFIX)/lib/gcc/$(TARGET)/lib/')
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define $(PKG)_BUILD_mingw-w64
|
|
|
|
define $(PKG)_BUILD_mingw-w64
|
|
|
@ -97,6 +99,14 @@ define $(PKG)_BUILD_mingw-w64
|
|
|
|
$(MAKE) -C '$(1).build' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(1).build' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(1).build' -j 1 install
|
|
|
|
$(MAKE) -C '$(1).build' -j 1 install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# shared libgcc isn't installed to version-specific locations
|
|
|
|
|
|
|
|
# so install correctly to avoid clobbering with multiple versions
|
|
|
|
|
|
|
|
$(and $(BUILD_SHARED),
|
|
|
|
|
|
|
|
$(MAKE) -C '$(1).build/$(TARGET)/libgcc' -j 1 \
|
|
|
|
|
|
|
|
toolexecdir='$(PREFIX)/$(TARGET)/bin/gcc-$($(PKG)_VERSION)' \
|
|
|
|
|
|
|
|
SHLIB_SLIBDIR_QUAL= \
|
|
|
|
|
|
|
|
install-shared)
|
|
|
|
|
|
|
|
|
|
|
|
$($(PKG)_POST_BUILD)
|
|
|
|
$($(PKG)_POST_BUILD)
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|