mirror of
https://github.com/wownero/wownero.git
synced 2026-10-25 02:18:33 +01:00
depends: explicitely set C/CXX standard for all packages
This commit is contained in:
@@ -8,6 +8,9 @@ SOURCES_PATH ?= $(BASEDIR)/sources
|
|||||||
BASE_CACHE ?= $(BASEDIR)/built
|
BASE_CACHE ?= $(BASEDIR)/built
|
||||||
FALLBACK_DOWNLOAD_PATH ?= https://downloads.getmonero.org/depends-sources
|
FALLBACK_DOWNLOAD_PATH ?= https://downloads.getmonero.org/depends-sources
|
||||||
|
|
||||||
|
C_STANDARD ?= c11
|
||||||
|
CXX_STANDARD ?= c++17
|
||||||
|
|
||||||
BUILD = $(shell ./config.guess)
|
BUILD = $(shell ./config.guess)
|
||||||
HOST ?= $(BUILD)
|
HOST ?= $(BUILD)
|
||||||
PATCHES_PATH = $(BASEDIR)/patches
|
PATCHES_PATH = $(BASEDIR)/patches
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ android_CXX=$(clear_guix_env) $(build_prefix)/bin/$(host_toolchain)clang++
|
|||||||
android_AR=llvm-ar
|
android_AR=llvm-ar
|
||||||
android_RANLIB=llvm-ranlib
|
android_RANLIB=llvm-ranlib
|
||||||
|
|
||||||
android_CFLAGS=-pipe
|
android_CFLAGS=-pipe -std=$(C_STANDARD)
|
||||||
android_CXXFLAGS=$(android_CFLAGS)
|
android_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
android_ARFLAGS=crsD
|
android_ARFLAGS=crsD
|
||||||
|
|
||||||
android_release_CFLAGS=-O2
|
android_release_CFLAGS=-O2
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
|
|||||||
-iwithsysroot/usr/include/c++/v1 \
|
-iwithsysroot/usr/include/c++/v1 \
|
||||||
-iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks
|
-iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks
|
||||||
|
|
||||||
darwin_CFLAGS=-pipe
|
darwin_CFLAGS=-pipe -std=$(C_STANDARD)
|
||||||
darwin_CXXFLAGS=$(darwin_CFLAGS)
|
darwin_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
darwin_LDFLAGS=-Wl,-platform_version,macos,$(OSX_MIN_VERSION),$(OSX_SDK_VERSION) -Wl,-no_adhoc_codesign -fuse-ld=lld
|
darwin_LDFLAGS=-Wl,-platform_version,macos,$(OSX_MIN_VERSION),$(OSX_SDK_VERSION) -Wl,-no_adhoc_codesign -fuse-ld=lld
|
||||||
darwin_ARFLAGS=cr
|
darwin_ARFLAGS=cr
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ freebsd_AR=ar
|
|||||||
freebsd_RANLIB=ranlib
|
freebsd_RANLIB=ranlib
|
||||||
freebsd_NM=nm
|
freebsd_NM=nm
|
||||||
|
|
||||||
freebsd_CFLAGS=-pipe
|
freebsd_CFLAGS=-pipe -std=$(C_STANDARD)
|
||||||
freebsd_CXXFLAGS=$(freebsd_CFLAGS)
|
freebsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
freebsd_ARFLAGS=cr
|
freebsd_ARFLAGS=cr
|
||||||
|
|
||||||
freebsd_release_CFLAGS=-O2
|
freebsd_release_CFLAGS=-O2
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
linux_CFLAGS=-pipe
|
linux_CFLAGS=-pipe -std=$(C_STANDARD)
|
||||||
linux_CXXFLAGS=$(linux_CFLAGS)
|
linux_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
linux_ARFLAGS=cr
|
linux_ARFLAGS=cr
|
||||||
|
|
||||||
linux_release_CFLAGS=-O2
|
linux_release_CFLAGS=-O2
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
mingw32_CFLAGS=-pipe
|
mingw32_CFLAGS=-pipe -std=$(C_STANDARD)
|
||||||
mingw32_CXXFLAGS=$(mingw32_CFLAGS)
|
mingw32_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
mingw32_ARFLAGS=cr
|
mingw32_ARFLAGS=cr
|
||||||
|
|
||||||
mingw32_release_CFLAGS=-O2
|
mingw32_release_CFLAGS=-O2
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ $(package)_toolset_$(host_os)=gcc
|
|||||||
$(package)_archiver_$(host_os)=$($(package)_ar)
|
$(package)_archiver_$(host_os)=$($(package)_ar)
|
||||||
$(package)_config_libraries_$(host_os)="chrono,filesystem,program_options,system,thread,test,date_time,regex,serialization"
|
$(package)_config_libraries_$(host_os)="chrono,filesystem,program_options,system,thread,test,date_time,regex,serialization"
|
||||||
$(package)_config_libraries_mingw32="chrono,filesystem,program_options,system,thread,test,date_time,regex,serialization,locale"
|
$(package)_config_libraries_mingw32="chrono,filesystem,program_options,system,thread,test,date_time,regex,serialization,locale"
|
||||||
$(package)_cxxflags=-std=c++17
|
|
||||||
$(package)_cxxflags_linux+=-fPIC
|
$(package)_cxxflags_linux+=-fPIC
|
||||||
$(package)_cxxflags_freebsd+=-fPIC
|
$(package)_cxxflags_freebsd+=-fPIC
|
||||||
$(package)_cxxflags_darwin+=-ffile-prefix-map=$($(package)_extract_dir)=/usr
|
$(package)_cxxflags_darwin+=-ffile-prefix-map=$($(package)_extract_dir)=/usr
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ $(package)_version_protobuf_cpp=3.21.12
|
|||||||
$(package)_download_path=https://github.com/protocolbuffers/protobuf/releases/download/v$($(package)_version)/
|
$(package)_download_path=https://github.com/protocolbuffers/protobuf/releases/download/v$($(package)_version)/
|
||||||
$(package)_file_name=protobuf-cpp-$($(package)_version_protobuf_cpp).tar.gz
|
$(package)_file_name=protobuf-cpp-$($(package)_version_protobuf_cpp).tar.gz
|
||||||
$(package)_sha256_hash=4eab9b524aa5913c6fffb20b2a8abf5ef7f95a80bc0701f3a6dbb4c607f73460
|
$(package)_sha256_hash=4eab9b524aa5913c6fffb20b2a8abf5ef7f95a80bc0701f3a6dbb4c607f73460
|
||||||
$(package)_cxxflags=-std=c++11
|
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--disable-shared --prefix=$(build_prefix)
|
$(package)_config_opts=--disable-shared --prefix=$(build_prefix)
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ $(package)_download_path=$(native_$(package)_download_path)
|
|||||||
$(package)_file_name=$(native_$(package)_file_name)
|
$(package)_file_name=$(native_$(package)_file_name)
|
||||||
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
|
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
|
||||||
$(package)_dependencies=native_$(package)
|
$(package)_dependencies=native_$(package)
|
||||||
$(package)_cxxflags=-std=c++11
|
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--disable-shared --with-protoc=$(build_prefix)/bin/protoc
|
$(package)_config_opts=--disable-shared --with-protoc=$(build_prefix)/bin/protoc
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ $(package)_sha256_hash=6653ef5910f17954861fe72332e68b03ca6e4d9c7160eb3a8de5a5a91
|
|||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--without-documentation --disable-shared --without-libsodium --disable-curve
|
$(package)_config_opts=--without-documentation --disable-shared --without-libsodium --disable-curve
|
||||||
$(package)_cxxflags=-std=c++11
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
define $(package)_preprocess_cmds
|
||||||
|
|||||||
Reference in New Issue
Block a user