Skip to content

Commit

Permalink
Fixes for OSX.
Browse files Browse the repository at this point in the history
* Linker doesn't need -fPIC, causes error.
* #pragma once in cpp files removed.
  • Loading branch information
BQ authored and BQ committed Feb 8, 2013
1 parent e59ab45 commit 0e90ec7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
14 changes: 6 additions & 8 deletions projects/premake4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ solution "Bootil"
flags { "Symbols", "NoEditAndContinue", "NoPCH", "StaticRuntime", "EnableSSE" }
targetdir ( "../lib/" .. os.get() .. "/" .. _ACTION )
includedirs { "../include/", "../src/3rdParty/" }

if os.is( "linux" ) or os.is( "macosx" ) then
buildoptions { "-fPIC" }
linkoptions { "-fPIC" }
-- linkoptions { "-fPIC" } -- OSX does not need this for linking
end

configurations
{
{
"Release",
"Debug"
}

configuration "Release"
defines { "NDEBUG" }
flags{ "OptimizeSpeed", "FloatFast" }

configuration "Debug"
defines { "_DEBUG" }
targetsuffix "_debug"
Expand All @@ -38,5 +38,3 @@ project "Bootil-Static"
files { "../src/**.*", "../include/**.*" }
kind "StaticLib"
targetname( "bootil_static" )


2 changes: 1 addition & 1 deletion src/Bootil/Threads/Mutex.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once

#include "Bootil/Bootil.h"
#include "tinythreadpp/fast_mutex.h"

Expand Down
2 changes: 1 addition & 1 deletion src/Bootil/Threads/Thread.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once

#include "Bootil/Bootil.h"
#include "tinythreadpp/tinythread.h"
#include "tinythreadpp/fast_mutex.h"
Expand Down
2 changes: 1 addition & 1 deletion src/Bootil/Threads/Utility.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once

#include "Bootil/Bootil.h"

#ifdef _WIN32
Expand Down

0 comments on commit 0e90ec7

Please sign in to comment.