Skip to content

Commit

Permalink
Merge pull request #10 from wsnipex/ogg-fix
Browse files Browse the repository at this point in the history
[depends] re-bootstrap ogg
  • Loading branch information
Montellese committed Feb 27, 2015
2 parents 62c2cc8 + 24cea2d commit 84acb14
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions depends/common/ogg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@ project(ogg)
cmake_minimum_required(VERSION 2.8)
include(CheckCCompilerFlag)

CHECK_C_COMPILER_FLAG("-fPIC" HAVE_FPIC)
if(HAVE_FPIC)
set(EXTRA_CFLAGS "CFLAGS=-fPIC -DPIC -O2")
endif()

include(ExternalProject)
externalproject_add(ogg
SOURCE_DIR ${CMAKE_SOURCE_DIR}
UPDATE_COMMAND ""
UPDATE_COMMAND autoreconf -vif <SOURCE_DIR>
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=${OUTPUT_DIR}
--enable-static
--disable-shared
${EXTRA_CFLAGS}
"CFLAGS=-fPIC -DPIC -O2"
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1)

Expand Down

0 comments on commit 84acb14

Please sign in to comment.