ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

libressl.mk (736B)


      1 TARG = libressl
      2 
      3 <$mkbuild/mk.common-noinst
      4 
      5 libressl:QV:
      6 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
      7 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
      8 	#
      9 	CC="$CC -static" ./configure \
     10 		--build="${TOOLCHAIN_TRIPLET}" \
     11 		--host="${HOST_TOOLCHAIN_TRIPLET}" \
     12 		--prefix="$PREFIX" \
     13 		--mandir="$ROOT/share/man" \
     14 		--disable-shared \
     15 		--enable-static
     16 	# Set path to libssl.a and libcrypto.a for apps/.
     17 	export LDFLAGS="-all-static $LDFLAGS -L`pwd`/crypto -L`pwd`/ssl -lcrypto -lssl"
     18 	make -j$nprocs V="1" LDFLAGS="$LDFLAGS"
     19 	# install lib for use as a dependency.
     20 	make -j$nprocs install DESTDIR="`pwd`/lib" V="1"
     21 	# remove .la files for now ?
     22 	find `pwd`/lib -iname "*.la" -exec rm {} \;
     23 
     24 install:QV:
     25 	make -j$nprocs install DESTDIR="$ROOT" V="1"