Skip to content

Commit

Permalink
fix: darwin to linux toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzyjamroz committed Nov 7, 2024
1 parent 9f997c4 commit 16ad89e
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 93 deletions.
31 changes: 31 additions & 0 deletions configure/os/CONFIG.darwin-x86.linux-x86_64
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# CONFIG.darwin-x86.Common
#
# Definitions for darwin-x86 host - linux-x86_64 target builds
# Sites may override these definitions in CONFIG_SITE.darwin-x86.Common
#-------------------------------------------------------

#Include definitions common to unix hosts
#include $(CONFIG)/os/CONFIG.UnixCommon.Common
include $(CONFIG)/os/CONFIG.Common.linux-x86_64
#unexport GCC_EXEC_PREFIX

GNU_DIR ?= /usr/local/opt/x86_64-unknown-linux-gnu/toolchain
GNU_TARGET ?= x86_64-linux-gnu

COMMANDLINE_LIBRARY ?= READLINE

ARCH_DEP_COMMONFLAGS += -mtune=generic

ARCH_DEP_CFLAGS += $(ARCH_DEP_COMMONFLAGS)
ARCH_DEP_CFLAGS += -pipe -feliminate-unused-debug-types

ARCH_DEP_CPPFLAGS += $(ARCH_DEP_COMMONFLAGS)

ARCH_DEP_CXXFLAGS += $(ARCH_DEP_COMMONFLAGS)
ARCH_DEP_CXXFLAGS += -pipe -feliminate-unused-debug-types
ARCH_DEP_CXXFLAGS += -std=c++17

ARCH_DEP_LDFLAGS += -Wl,-O1
ARCH_DEP_LDFLAGS += -Wl,--hash-style=gnu
ARCH_DEP_LDFLAGS += -Wl,--as-needed
# ARCH_DEP_LDFLAGS += -Wl,--verbose
93 changes: 0 additions & 93 deletions configure/os/CONFIG.darwin-x86.linux-x86_64-test

This file was deleted.

19 changes: 19 additions & 0 deletions configure/os/CONFIG_SITE.darwin-x86.linux-x86_64
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# CONFIG_SITE.darwin-x86.linux-x86_64
#
# Site specific definitions for darwin-x86 host - linux-x86_64 target builds
#-------------------------------------------------------

# Default
#GNU_DIR := /usr/local/opt/x86_64-unknown-linux-gnu/toolchain
# Development
GNU_DIR = /Users/jerzy/opt/toolchain/x86_64-unknown-linux-gnu/toolchain

# Default
#GNU_TARGET = x86_64-linux-gnu

# Development
#CMPLR_SUFFIX := -14

# Expand ARCH DEPENDENT flags for your target
#ARCH_DEP_COMMONFLAGS += -mtune=corei7
#ARCH_DEP_LDFLAGS += -Wl,--verbose

0 comments on commit 16ad89e

Please sign in to comment.