ports

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

strace.mk (893B)


      1 TARG = strace
      2 INSTALL_MAN1 = strace.1
      3 INSTALL_BIN = \
      4 	strace \
      5 	strace-log-merge \
      6 	strace-graph
      7 
      8 <$mkbuild/mk.common
      9 
     10 strace:QV:
     11 	# patch configure
     12 	sed -i -e 's/include <linux\/socket.h>/include <sys\/socket.h>/g' configure
     13 	# patch sys/poll.h
     14 	find -name "*.[ch]" -exec sed 's@sys/poll.h@poll.h@g' -i {} \;
     15 	# remove sys/sysinfo.h include.
     16 	find -name "*.[ch]" -exec sed 's@#include <sys/sysinfo.h>@@g' -i {} \;
     17 	export CFLAGS="$CFLAGS -Dsigcontext_struct=sigcontext"
     18 	# NOTE: --host is set to TOOLCHAIN_TRIPLET (not HOST_TOOLCHAIN_TRIPLET)
     19 	#       because asm include bits per arch are needed.
     20 	#       --build is not defined because --build should be != --host in
     21 	#       configure.
     22 	CC="$CC" ./configure \
     23 		--host="${TOOLCHAIN_TRIPLET}" \
     24 		--prefix="$PREFIX" \
     25 		--mandir="$ROOT/share/man" \
     26 		--disable-shared \
     27 		--enable-static \
     28 		ac_cv_have_long_long_off_t=yes
     29 	make -j$nprocs