mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
Merge pull request #228 from abrodkin/centos7-fix
Fix building on CentOS 7.x
This commit is contained in:
commit
83c2097eba
@ -9,7 +9,7 @@ LINKER_VERSION ?= 134.9
|
||||
LIBLTO_PATH ?=
|
||||
ADDITIONAL_CXXFLAGS ?=
|
||||
|
||||
override CXXFLAGS=-std=c++1y -Wall -Wextra -pedantic
|
||||
override CXXFLAGS=-std=c++0x -Wall -Wextra
|
||||
override CXXFLAGS+=-Wno-missing-field-initializers
|
||||
override CXXFLAGS+=-I. -O$(OPTIMIZE)
|
||||
|
||||
|
@ -27,6 +27,12 @@ using namespace target;
|
||||
namespace program {
|
||||
namespace osxcross {
|
||||
|
||||
template<typename A>
|
||||
|
||||
void print(const char *var, const A &val) {
|
||||
std::cout << "export OSXCROSS_" << var << "=" << val << std::endl;
|
||||
};
|
||||
|
||||
int conf(Target &target) {
|
||||
std::string SDKPath;
|
||||
OSVersion OSXVersionMin = getDefaultMinTarget();
|
||||
@ -47,10 +53,6 @@ int conf(Target &target) {
|
||||
if (!ltopath)
|
||||
ltopath = "";
|
||||
|
||||
auto print = [](const char *var, const auto &val) {
|
||||
std::cout << "export OSXCROSS_" << var << "=" << val << std::endl;
|
||||
};
|
||||
|
||||
print("VERSION", getOSXCrossVersion());
|
||||
print("OSX_VERSION_MIN", OSXVersionMin.shortStr());
|
||||
print("TARGET", getDefaultTarget());
|
||||
|
Loading…
Reference in New Issue
Block a user