#!/bin/bash
path_current=`pwd`
path_script=$(cd "$(dirname "$0")"; pwd)
export CPLUS_INCLUDE_PATH=${path_script}/../openssl/unix/include:$CPLUS_INCLUDE_PATH
export C_INCLUDE_PATH=${path_script}/../openssl/unix/include:$C_INCLUDE_PATH
export LD_LIBRARY_PATH=${path_script}/../openssl/unix/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=${path_script}/../openssl/unix/lib:$LIBRARY_PATH
rm -rf ${path_script}/unix
rm -rf ${path_script}/build
mkdir ${path_script}/build && \
cd ${path_script}/live555-2c92a57/ && \
./genMakefiles linux-no-openssl &&\
make clean &&\
make && \
make install DESTDIR=${path_script}/unix &&\
mv ${path_script}/unix/usr/local/* ${path_script}/unix/ && \
rm -rf ${path_script}/unix/usr
核心点:
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/ssl/include
export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/ssl/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ssl/lib
make install DESTDIR=${path_script}/unix &&\