aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/cmake/external/gif.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/contrib/cmake/external/gif.cmake')
-rw-r--r--tensorflow/contrib/cmake/external/gif.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/contrib/cmake/external/gif.cmake b/tensorflow/contrib/cmake/external/gif.cmake
index 9fdaeec13f..32c6369067 100644
--- a/tensorflow/contrib/cmake/external/gif.cmake
+++ b/tensorflow/contrib/cmake/external/gif.cmake
@@ -10,6 +10,8 @@ set(gif_HEADERS
"${gif_INSTALL}/include/gif_lib.h"
)
+set(ENV{CFLAGS} "$ENV{CFLAGS} -fPIC")
+
ExternalProject_Add(gif
PREFIX gif
URL ${gif_URL}
@@ -20,6 +22,7 @@ ExternalProject_Add(gif
INSTALL_COMMAND $(MAKE) install
CONFIGURE_COMMAND
${CMAKE_CURRENT_BINARY_DIR}/gif/src/gif/configure
+ --with-pic
--prefix=${gif_INSTALL}
--enable-shared=yes
)