File tree Expand file tree Collapse file tree 11 files changed +29
-22
lines changed
Expand file tree Collapse file tree 11 files changed +29
-22
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ $(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_
131131 -e 's|@build_os@|$(build_os)|' \
132132 -e 's|@host_os@|$(host_os)|' \
133133 -e 's|@CFLAGS@|$(strip $(host_CFLAGS) $(host_$(release_type)_CFLAGS))|' \
134- -e 's|@CXXFLAGS@|$(strip $(host_CXXFLAGS) $(host_$(release_type)_CXXFLAGS))|' \
134+ -e 's|@CXXFLAGS@|$(strip -pipe $(host_$(release_type)_CXXFLAGS))|' \
135135 -e 's|@CPPFLAGS@|$(strip $(host_CPPFLAGS) $(host_$(release_type)_CPPFLAGS))|' \
136136 -e 's|@LDFLAGS@|$(strip $(host_LDFLAGS) $(host_$(release_type)_LDFLAGS))|' \
137137 -e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \
Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) -isysroo
77darwin_CXX =clang++ -target $(host ) -mmacosx-version-min=$(OSX_MIN_VERSION ) -isysroot $(OSX_SDK ) -mlinker-version=$(LD64_VERSION ) -stdlib=libc++ -B $(host_prefix ) /native/bin
88
99darwin_CFLAGS =-pipe
10- darwin_CXXFLAGS =$(darwin_CFLAGS )
10+ darwin_CXXFLAGS =$(darwin_CFLAGS ) -std=c++11
1111
12- darwin_release_CFLAGS =-O2
12+ darwin_release_CFLAGS =-O2 -g
1313darwin_release_CXXFLAGS =$(darwin_release_CFLAGS )
1414
15- darwin_debug_CFLAGS =-Og
16- darwin_debug_CXXFLAGS =$(darwin_debug_CFLAGS )
15+ darwin_debug_CFLAGS =-Og -g
16+ darwin_debug_CXXFLAGS =-O0 -g
17+
18+ darwin_native_toolchain =native_cctools
1719
18- darwin_native_toolchain =native_cctools
Original file line number Diff line number Diff line change 11linux_CFLAGS =-pipe
2- linux_CXXFLAGS =$(linux_CFLAGS )
2+ linux_CXXFLAGS =$(linux_CFLAGS ) -std=c++11
33
4- linux_release_CFLAGS =-O3 -g -include $(BASEDIR ) /glibc_version_header/force_link_glibc_2.19.h
4+ linux_release_CFLAGS =-O3 -g
5+ ifeq (1,$(shell ldd --version | head -1 | awk '{print $$NF < 2.28}') )
6+ linux_release_CFLAGS+ = -include $(BASEDIR ) /glibc_version_header/force_link_glibc_2.19.h
7+ endif
58linux_release_CXXFLAGS =$(linux_release_CFLAGS )
69
710linux_debug_CFLAGS =-O1 -g
Original file line number Diff line number Diff line change 11mingw32_CFLAGS =-pipe
2- mingw32_CXXFLAGS =$(mingw32_CFLAGS )
2+ mingw32_CXXFLAGS =$(mingw32_CFLAGS ) -std=c++11
33
4- mingw32_release_CFLAGS =-O2
4+ mingw32_release_CFLAGS =-O2 -g
55mingw32_release_CXXFLAGS =$(mingw32_release_CFLAGS )
66
7- mingw32_debug_CFLAGS =-O1
8- mingw32_debug_CXXFLAGS =$( mingw32_debug_CFLAGS )
7+ mingw32_debug_CFLAGS =-O1 -g
8+ mingw32_debug_CXXFLAGS =-O0 -g
99
1010mingw32_debug_CPPFLAGS =-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
11+
Original file line number Diff line number Diff line change 11package =bdb
22$(package)_version =4.8.30
3- $(package)_download_path =http ://download.oracle.com/berkeley-db
3+ $(package)_download_path =https ://download.oracle.com/berkeley-db
44$(package)_file_name =db-$($(package ) _version) .NC.tar.gz
55$(package)_sha256_hash =12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef
66$(package)_build_subdir =build_unix
@@ -9,7 +9,7 @@ define $(package)_set_vars
99$(package ) _config_opts=--disable-shared --enable-cxx --disable-replication
1010$(package ) _config_opts_mingw32=--enable-mingw
1111$(package ) _config_opts_linux=--with-pic
12- $(package ) _cxxflags=-std=c++11
12+ $(package ) _cppflags_mingw32=-DUNICODE -D_UNICODE
1313endef
1414
1515define $(package)_preprocess_cmds
2929define $(package)_stage_cmds
3030 $(MAKE ) DESTDIR=$($(package ) _staging_dir) install_lib install_include
3131endef
32+
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ define $(package)_preprocess_cmds
2222 PKG_CONFIG_SYSROOT_DIR=/ \
2323 PKG_CONFIG_LIBDIR=$(host_prefix ) /lib/pkgconfig \
2424 PKG_CONFIG_PATH=$(host_prefix ) /share/pkgconfig \
25- sed -i.old 's/^GEN_DEPS.cc.*/& $(CXXFLAGS ) /' source/config/mh-mingw* && \
2625 mkdir -p build && cd build && \
2726 ../source/runConfigureICU Linux $($(package ) _standard_opts) CXXFLAGS=-std=c++11 && \
2827 $(MAKE ) && cd ..
@@ -32,6 +31,8 @@ define $(package)_config_cmds
3231 PKG_CONFIG_SYSROOT_DIR=/ \
3332 PKG_CONFIG_LIBDIR=$(host_prefix ) /lib/pkgconfig \
3433 PKG_CONFIG_PATH=$(host_prefix ) /share/pkgconfig \
34+ sed -i.old 's|^GEN_DEPS.c=.*|& $($(package ) _cflags) |' config/mh-mingw* && \
35+ sed -i.old 's|^GEN_DEPS.cc=.*|& $($(package ) _cxxflags) |' config/mh-mingw* && \
3536 $($(package ) _autoconf)
3637endef
3738
Original file line number Diff line number Diff line change @@ -27,4 +27,5 @@ define $(package)_stage_cmds
2727endef
2828
2929define $(package)_postprocess_cmds
30+ rm lib/*.la
3031endef
Original file line number Diff line number Diff line change 11package =miniupnpc
22$(package)_version =2.0.20180203
3- $(package)_download_path =http ://miniupnp.free.fr /files
3+ $(package)_download_path =https ://miniupnp.tuxfamily.org /files/
44$(package)_file_name =$(package ) -$($(package ) _version) .tar.gz
55$(package)_sha256_hash =90dda8c7563ca6cd4a83e23b3c66dbbea89603a1675bfdb852897c2c9cc220b7
66
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ $(package)_file_name=$(package)-$($(package)_version).tar.gz
55$(package)_sha256_hash =8f9faeaebad088e772f4ef5e38252d472be4d878c6b3a2718c10a4fcebe7a41c
66
77define $(package)_set_vars
8- $(package ) _config_env=AR="$($(package ) _ar) " RANLIB="$($(package ) _ranlib) " CC="$($(package ) _cc) "
8+ $(package ) _config_env=AR="$($(package ) _ar) " RANLIB="$($(package ) _ranlib) " CC="$($(package ) _cc) $( $( package ) _cflags) $( $( package ) _cppflags) "
99$(package ) _config_opts=--prefix=$(host_prefix ) --openssldir=$(host_prefix ) /etc/openssl
1010$(package ) _config_opts+=no-camellia
1111$(package ) _config_opts+=no-capieng
@@ -42,7 +42,6 @@ $(package)_config_opts+=no-weak-ssl-ciphers
4242$(package ) _config_opts+=no-whirlpool
4343$(package ) _config_opts+=no-zlib
4444$(package ) _config_opts+=no-zlib-dynamic
45- $(package ) _config_opts+=$($(package ) _cflags) $($(package ) _cppflags)
4645$(package ) _config_opts_linux=-fPIC -Wa,--noexecstack
4746$(package ) _config_opts_x86_64_linux=linux-x86_64
4847$(package ) _config_opts_i686_linux=linux-generic32
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ $(package)_download_path=$(native_$(package)_download_path)
44$(package)_file_name =$(native_$(package ) _file_name )
55$(package)_sha256_hash =$(native_$(package ) _sha256_hash )
66$(package)_dependencies =native_$(package )
7- $(package)_cxxflags=-std =c++11
87
98define $(package)_set_vars
109 $(package ) _config_opts=--disable-shared --with-protoc=$(build_prefix ) /bin/protoc
You can’t perform that action at this time.
0 commit comments