From 2383e2b0f57ebad3eecab885d433341f2dbbfe20 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Fri, 5 Nov 2010 02:23:24 +0000 Subject: Improve the compiler flags for the cmake build system. -fPIC only needs to be specified for static libraries that are linked into shared libraries. cmake automatically uses -fPIC for shared libraries. Also ported several other needed compiler flags from the scons build. Set up the debug build, enabled with "-D CMAKE_BUILD_TYPE=Release", to work with wxWidgets debugging. Note that most users will want to use the release build to get a -O3 optimized build. This can be enabled by adding "-D CMAKE_BUILD_TYPE=Release". git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6344 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/AudioCommon/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Core/AudioCommon') diff --git a/Source/Core/AudioCommon/CMakeLists.txt b/Source/Core/AudioCommon/CMakeLists.txt index da7a000ea2..237ebd6f4d 100644 --- a/Source/Core/AudioCommon/CMakeLists.txt +++ b/Source/Core/AudioCommon/CMakeLists.txt @@ -36,3 +36,6 @@ endif() add_library(audiocommon STATIC ${SRCS}) target_link_libraries(audiocommon ${LIBS}) +if(UNIX) + add_definitions(-fPIC) +endif(UNIX) -- cgit v1.2.3