Skip to content

Commit

Permalink
Use PIC relocation on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdn committed Apr 18, 2014
1 parent 752dc20 commit 686e956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ void jl_dump_objfile(char* fname, int jit_model)
jl_TargetMachine->getTargetCPU(),
jl_TargetMachine->getTargetFeatureString(),
jl_TargetMachine->Options,
#ifdef _OS_LINUX_
#if defined(_OS_LINUX_) || defined(_OS_FREEBSD_)
Reloc::PIC_,
#else
jit_model ? Reloc::PIC_ : Reloc::Default,
Expand Down
2 changes: 1 addition & 1 deletion src/support/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
*******************************************************************************/

#if defined(__FreeBSD__)
#define _OS_FREEBSD__
#define _OS_FREEBSD_
#elif defined(__linux__)
#define _OS_LINUX_
#elif defined(_WIN32) || defined(_WIN64)
Expand Down

0 comments on commit 686e956

Please sign in to comment.