Chris Lattner | 4bb13b8 | 2002-09-13 22:14:47 +0000 | [diff] [blame] | 1 | #===-- Makefile.Linux - Linux specific makefile options ---*- makefile -*--====# |
| 2 | # |
| 3 | # This file is included by all other files, through Makefile.common, but only |
| 4 | # when compiling on a Linux based platform. |
| 5 | # |
| 6 | #===-----------------------------------------------------------------------====# |
| 7 | |
Chris Lattner | c35679b | 2002-12-06 03:45:20 +0000 | [diff] [blame] | 8 | # Set the architecture so that x86 platform dependant code is compmiled |
| 9 | ARCH := x86 |
| 10 | |
Chris Lattner | 4bb13b8 | 2002-09-13 22:14:47 +0000 | [diff] [blame] | 11 | # MakeSharedObjectOption - This option is passed to the linker by |
| 12 | # Makefile.common when compiling a shared object. |
| 13 | # |
| 14 | MakeSharedObjectOption := -shared |
| 15 | |
Chris Lattner | 1c58850 | 2002-11-04 20:50:33 +0000 | [diff] [blame] | 16 | # PLATFORMLINKOPTS - On Linux, we must specify this linker option so that all |
| 17 | # symbols are exported by tools for runtime use by dlsym. |
Chris Lattner | 4bb13b8 | 2002-09-13 22:14:47 +0000 | [diff] [blame] | 18 | # |
Chris Lattner | 1c58850 | 2002-11-04 20:50:33 +0000 | [diff] [blame] | 19 | PLATFORMLINKOPTS := -Wl,--export-dynamic |
Chris Lattner | 4bb13b8 | 2002-09-13 22:14:47 +0000 | [diff] [blame] | 20 | |
Chris Lattner | 527002c | 2003-01-31 19:00:26 +0000 | [diff] [blame] | 21 | # PLATFORMSTRIPOPTS - Command to pass to the link phase to cause symbols to be |
| 22 | # stripped from the resultant binary. |
| 23 | PLATFORMSTRIPOPTS := -Wl,-x |
| 24 | |
Chris Lattner | 7f666ca | 2002-09-19 19:44:28 +0000 | [diff] [blame] | 25 | # Path to location for LLVM front-end for this architecture. This setting may |
| 26 | # be overriden by the Makefile.config option, and should not override it if set. |
| 27 | # |
Chris Lattner | 6d10765 | 2003-05-09 04:17:06 +0000 | [diff] [blame] | 28 | LLVMGCCARCH := i686-pc-linux-gnu/3.4-llvm |
Chris Lattner | f6bcd1b | 2003-05-25 16:52:41 +0000 | [diff] [blame] | 29 | ifndef LLVMGCCDIR |
Chris Lattner | 6d10765 | 2003-05-09 04:17:06 +0000 | [diff] [blame] | 30 | LLVMGCCDIR := /home/vadve/lattner/local/x86/llvm-gcc/ |
Chris Lattner | 7f666ca | 2002-09-19 19:44:28 +0000 | [diff] [blame] | 31 | endif |
Chris Lattner | 698a131 | 2002-09-19 21:32:44 +0000 | [diff] [blame] | 32 | |
Vikram S. Adve | 11fd1d3 | 2002-09-23 14:24:19 +0000 | [diff] [blame] | 33 | # For now we disable running LLC output, because LLC does not generate x86 code |
| 34 | # LLC itself can be run so disable the diffs, not LLC itself. |
| 35 | # |
| 36 | DISABLE_LLC_DIFFS := 1 |
Chris Lattner | 63757f5 | 2003-01-13 00:13:19 +0000 | [diff] [blame] | 37 | |
| 38 | # This platform has a JIT compiler! FIXME: This should be changed to be an |
| 39 | # option printed by LLI itself at some point. |
| 40 | # |
| 41 | TARGET_HAS_JIT := 1 |
| 42 | |