Rev | Line | |
---|
[12] | 1 | # Copyright 2001 David Abrahams. |
---|
| 2 | # Copyright 2003-04 Rene Rivera. |
---|
| 3 | # Distributed under the Boost Software License, Version 1.0. |
---|
| 4 | # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | # singleton variables... |
---|
| 8 | set-as-singleton MINGW_ROOT_DIRECTORY MINGW_BIN_DIRECTORY MINGW_INCLUDE_DIRECTORY MINGW_STDLIB_DIRECTORY ; |
---|
| 9 | |
---|
| 10 | { |
---|
| 11 | local GCC_ROOT_DIRECTORY = $(MINGW_ROOT_DIRECTORY) ; |
---|
| 12 | local GCC_BIN_DIRECTORY = $(MINGW_BIN_DIRECTORY) ; |
---|
| 13 | local GCC_INCLUDE_DIRECTORY = $(MINGW_INCLUDE_DIRECTORY) ; |
---|
| 14 | local GCC_STDLIB_DIRECTORY = $(MINGW_STDLIB_DIRECTORY) ; |
---|
| 15 | extends-toolset gcc ; |
---|
| 16 | |
---|
| 17 | # So that RUNPATH, and PATH, is set to include where the mingw DLLs are located. |
---|
| 18 | flags mingw STDLIBPATH : $(GCC_BIN_DIRECTORY) ; |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | flags mingw LINKFLAGS <user-interface>gui : -Wl,--subsystem,windows ; |
---|
| 22 | flags mingw LINKFLAGS : -Wl,--allow-multiple-definition ; |
---|
| 23 | |
---|
| 24 | # Prefer linking DLLs without the -Wl,--export-all-symbols flag |
---|
| 25 | GCC_NO_EXPORT_ALL ?= true ; |
---|
| 26 | |
---|
| 27 | # Use the -mno-cygwin flag for compiling C, C++ and linking |
---|
| 28 | CFLAGS += -mno-cygwin ; |
---|
| 29 | LINKFLAGS += -mno-cygwin ; |
---|
Note: See
TracBrowser
for help on using the repository browser.