travis - does adding cflags help? want to keep minimal invasion into gflags installation.
authorYangqing Jia <jiayq@google.com>
Thu, 24 Jul 2014 17:28:06 +0000 (10:28 -0700)
committerYangqing Jia <jiayq@google.com>
Thu, 24 Jul 2014 17:28:06 +0000 (10:28 -0700)
.travis.yml

index a61e508..5d8beb1 100644 (file)
@@ -15,6 +15,8 @@ before_install:
   - echo $LC_ALL
   - sudo apt-get -y update
   - sudo apt-get -y install wget git curl python-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev protobuf-compiler libatlas-dev libatlas-base-dev bc
+  - export CFLAGS="-fPIC"
+  - export CXXFLAGS="-fPIC"
 
 install:
   - wget https://github.com/schuhschuh/gflags/archive/master.zip -O /tmp/gflags-master.zip && pushd /tmp/ && unzip gflags-master.zip && cd gflags-master && mkdir build && cd build && cmake .. && make && sudo make install && popd