diff --git a/configure b/configure index 04abd85b49..0f4c6acf07 100755 --- a/configure +++ b/configure @@ -424,18 +424,18 @@ USE_LIB_MAGIC="1" LIBMAGIC="-lmagic" else USE_LIB_MAGIC="0" -LIBMAGIC="-lr_magic"; fi +LIBMAGIC=""; fi [ -z "${PKGCONFIG}" ] && PKGCONFIG=pkg-config type ${PKGCONFIG} > /dev/null 2>&1 || echo "ERROR: Cannot find PKGCONFIG ${PKGCONFIG}" echo 'Using PKGCONFIG: '${PKGCONFIG} printf 'checking pkg-config flags for capstone... ' tmp=`${PKGCONFIG} --cflags capstone 2>/dev/null` -if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_CAPSTONE=0; -else -CAPSTONE_CFLAGS=$tmp; +if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_CAPSTONE=0; +else +CAPSTONE_CFLAGS=$tmp; tmp=`${PKGCONFIG} --libs capstone 2>/dev/null` -if [ $? = 0 ]; then -echo yes; HAVE_PKGCFG_CAPSTONE=1; +if [ $? = 0 ]; then +echo yes; HAVE_PKGCFG_CAPSTONE=1; CAPSTONE_LDFLAGS=$tmp; fi; fi if [ 11 = "$WITH_CAPSTONE$HAVE_PKGCFG_CAPSTONE" ]; then @@ -451,21 +451,21 @@ USE_LIB_ZIP="1" LIBZIP="-lz -lzip" else USE_LIB_ZIP="0" -LIBZIP="-lrz"; fi +LIBZIP=""; fi else USE_LIB_ZIP="0" -LIBZIP="-lrz"; fi +LIBZIP=""; fi HAVE_LIB_GMP="0" check_library HAVE_LIB_SSL ssl 0 [ -z "${PKGCONFIG}" ] && PKGCONFIG=pkg-config printf 'checking pkg-config flags for openssl... ' tmp=`${PKGCONFIG} --cflags openssl 2>/dev/null` -if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_OPENSSL=0; -else -SSL_CFLAGS=$tmp; +if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_OPENSSL=0; +else +SSL_CFLAGS=$tmp; tmp=`${PKGCONFIG} --libs openssl 2>/dev/null` -if [ $? = 0 ]; then -echo yes; HAVE_PKGCFG_OPENSSL=1; +if [ $? = 0 ]; then +echo yes; HAVE_PKGCFG_OPENSSL=1; SSL_LDFLAGS=$tmp; fi; fi if [ ! "$SSL_LDFLAGS" = "" ]; then HAVE_OPENSSL="1"; fi @@ -525,7 +525,7 @@ for A in ${ENVWORDS} ; do SEDFLAGS="${SEDFLAGS}s,@${A}@,${VAR},g;" done SEDFLAGS="${SEDFLAGS}'" -for A in ./config-user.mk libr/include/r_userconf.h pkgcfg/r_io.pc pkgcfg/r_magic.pc pkgcfg/r_asm.pc pkgcfg/r_bin.pc pkgcfg/r_anal.pc pkgcfg/r_hash.pc pkgcfg/r_cons.pc pkgcfg/r_core.pc pkgcfg/r_lang.pc pkgcfg/r_socket.pc pkgcfg/r_debug.pc pkgcfg/r_reg.pc pkgcfg/r_config.pc pkgcfg/r_flag.pc pkgcfg/r_syscall.pc pkgcfg/r_util.pc pkgcfg/r_search.pc pkgcfg/r_bp.pc pkgcfg/r_parse.pc pkgcfg/r_fs.pc ; do # SUBDIRS +for A in ./config-user.mk libr/include/r_userconf.h pkgcfg/r_io.pc pkgcfg/r_magic.pc pkgcfg/r_asm.pc pkgcfg/r_bin.pc pkgcfg/r_anal.pc pkgcfg/r_hash.pc pkgcfg/r_cons.pc pkgcfg/r_core.pc pkgcfg/r_lang.pc pkgcfg/r_socket.pc pkgcfg/r_debug.pc pkgcfg/r_reg.pc pkgcfg/r_config.pc pkgcfg/r_flag.pc pkgcfg/r_syscall.pc pkgcfg/r_util.pc pkgcfg/r_search.pc pkgcfg/r_bp.pc pkgcfg/r_parse.pc pkgcfg/r_fs.pc pkgcfg/r_egg.pc pkgcfg/r_crypto.pc ; do # SUBDIRS if [ -f "${VPATH}/${A}.acr" ]; then SD_TARGET=${A} else diff --git a/configure.acr b/configure.acr index 9569225dd3..da7050cbf3 100644 --- a/configure.acr +++ b/configure.acr @@ -18,7 +18,7 @@ IFAND HAVE_LIB_MAGIC USE_MAGIC { LIBMAGIC = -lmagic ; }{ USE_LIB_MAGIC = 0 ; - LIBMAGIC = -lr_magic ; + LIBMAGIC = ; } (( useful for static builds . see sys/static.sh )) @@ -43,16 +43,16 @@ IFAND HAVE_LIB_Z USE_ZIP { LIBZIP = -lz -lzip ; }{ USE_LIB_ZIP = 0 ; - LIBZIP = -lrz ; (( static linking to shlr/zip )) + LIBZIP = ; (( static linking to shlr/zip )) } }{ USE_LIB_ZIP = 0 ; - LIBZIP = -lrz ; (( static linking to shlr/zip )) + LIBZIP = ; (( static linking to shlr/zip )) } ARG_WITHOUT WITH_GPL gpl do not build GPL code (grub, cxx, ... ) ; -(( TODO must deprecate +(( TODO must deprecate CHKLIB gmp ARG_WITHOUT HAVE_GMP gmp disable GMP dependency ; IFNOT HAVE_GMP { HAVE_LIB_GMP = 0 ; } @@ -72,7 +72,7 @@ IFAND WANT_OPENSSL HAVE_OPENSSL { }{ HAVE_OPENSSL = 0 ; } -IFNULL SSL_LDFLAGS { +IFNULL SSL_LDFLAGS { IFNOT HAVE_LIB_SSL { HAVE_OPENSSL = 0 ; }{ @@ -161,4 +161,6 @@ SUBDIRS ./config-user.mk pkgcfg/r_bp.pc pkgcfg/r_parse.pc pkgcfg/r_fs.pc + pkgcfg/r_egg.pc + pkgcfg/r_crypto.pc ; diff --git a/libr/core/Makefile b/libr/core/Makefile index 4809dcdd6f..11e7844292 100644 --- a/libr/core/Makefile +++ b/libr/core/Makefile @@ -5,6 +5,8 @@ NAME=r_core DEPS=r_config r_cons r_io r_util r_flag r_asm DEPS+=r_debug r_hash r_bin r_lang r_io r_anal r_parse r_bp r_egg DEPS+=r_reg r_search r_syscall r_socket r_fs r_magic r_crypto +PCCFLAGS=@SSL_CFLAGS@ @CAPSTONE_CFLAGS@ +PCLIBS=@SSL_LDFLAGS@ @CAPSTONE_LDFLAGS@ OBJS=core.o cmd.o file.o cconfig.o visual.o cio.o yank.o libs.o graph.o OBJS+=fortune.o hack.o vasm.o patch.o cbin.o log.o rtr.o cmd_api.o diff --git a/libr/magic/Makefile b/libr/magic/Makefile index 4801fbb2ed..6dab1cb169 100644 --- a/libr/magic/Makefile +++ b/libr/magic/Makefile @@ -3,6 +3,7 @@ include $(LTOP)/config.mk NAME=r_magic DEPS=r_util +PCLIBS=@LIBMAGIC@ CFLAGS+=-I. ifeq (${USE_LIB_MAGIC},1) LDFLAGS+=-lmagic diff --git a/libr/rules.mk b/libr/rules.mk index dcd58146b0..6087558966 100644 --- a/libr/rules.mk +++ b/libr/rules.mk @@ -25,7 +25,6 @@ CFLAGS+=-I$(LIBR)/include LINK+=$(addprefix -L../,$(subst r_,,$(BINDEPS))) LINK+=$(addprefix -l,$(BINDEPS)) SRC=$(subst .o,.c,$(OBJ)) -MAGICSED=| sed -e 's,-lr_magic,@LIBMAGIC@,g' BEXE=$(BIN)$(EXT_EXE) @@ -108,10 +107,10 @@ pkgcfg: @echo 'Name: ${NAME}' >> ../../pkgcfg/${NAME}.pc.acr @echo 'Description: radare foundation libraries' >> ../../pkgcfg/${NAME}.pc.acr @echo 'Version: @VERSION@' >> ../../pkgcfg/${NAME}.pc.acr - @echo 'Requires:' >> ../../pkgcfg/${NAME}.pc.acr + @echo 'Requires: $(filter r_%,${DEPS})' >> ../../pkgcfg/${NAME}.pc.acr @if [ "${NAME}" = "libr" ]; then NAME=''; else NAME=${NAME}; fi ;\ - echo 'Libs: -L$${libdir} '`echo $${NAME} ${DEPS}|sed -e s,r_,-lr_,g` ${MAGICSED} >> ../../pkgcfg/${NAME}.pc.acr - @echo 'Cflags: -I$${includedir}/libr' >> ../../pkgcfg/${NAME}.pc.acr + echo 'Libs: -L$${libdir} -l${NAME} $(filter-out r_%,${DEPS}) ${PCLIBS}' >> ../../pkgcfg/${NAME}.pc.acr + @echo 'Cflags: -I$${includedir}/libr ${PCCFLAGS}' >> ../../pkgcfg/${NAME}.pc.acr clean:: ${EXTRA_CLEAN} -rm -f *.${EXT_EXE} *.${EXT_SO} *.${EXT_AR} *.d */*.d */*/*.d */*/*/*.d diff --git a/libr/util/Makefile b/libr/util/Makefile index da726fb7a3..20692d2d8c 100644 --- a/libr/util/Makefile +++ b/libr/util/Makefile @@ -2,7 +2,7 @@ include ../config.mk NAME=r_util CFLAGS+=-DCORELIB -I$(TOP)/shlr -DEPS= +PCLIBS=@LIBZIP@ @DL_LIBS@ OBJS=binheap.o mem.o pool.o unum.o str.o hex.o file.o range.o tinyrange.o OBJS+=prof.o cache.o sys.o buf.o w32-sys.o ubase64.o base85.o base91.o diff --git a/pkgcfg/Makefile b/pkgcfg/Makefile deleted file mode 100644 index 8294857c12..0000000000 --- a/pkgcfg/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -all: - $(MAKE) -C libr pkgcfg diff --git a/pkgcfg/r_anal.pc.acr b/pkgcfg/r_anal.pc.acr index 15b7e09417..344bda7525 100644 --- a/pkgcfg/r_anal.pc.acr +++ b/pkgcfg/r_anal.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_anal Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_anal -lr_util -lr_reg -lr_syscall -lr_search -lr_cons -lr_flag -Cflags: -I${includedir}/libr +Requires: r_util r_reg r_syscall r_search r_cons r_flag +Libs: -L${libdir} -lr_anal +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_asm.pc.acr b/pkgcfg/r_asm.pc.acr index 14af9f3e3a..3af88b7ee7 100644 --- a/pkgcfg/r_asm.pc.acr +++ b/pkgcfg/r_asm.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_asm Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_asm -lr_syscall -lr_lang -lr_util -lr_parse -lr_flag -lr_cons -lr_reg -Cflags: -I${includedir}/libr +Requires: r_syscall r_lang r_util r_parse r_flag r_cons r_reg +Libs: -L${libdir} -lr_asm +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_bin.pc.acr b/pkgcfg/r_bin.pc.acr index e77dd5df6c..11a4a524f8 100644 --- a/pkgcfg/r_bin.pc.acr +++ b/pkgcfg/r_bin.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_bin Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_bin -lr_util -lr_io -lr_socket @LIBMAGIC@ +Requires: r_util r_io r_socket r_magic +Libs: -L${libdir} -lr_bin Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_bp.pc.acr b/pkgcfg/r_bp.pc.acr index 2d533e1053..0bfd0c7dd8 100644 --- a/pkgcfg/r_bp.pc.acr +++ b/pkgcfg/r_bp.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_bp Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_bp -lr_util -Cflags: -I${includedir}/libr +Requires: r_util +Libs: -L${libdir} -lr_bp +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_config.pc.acr b/pkgcfg/r_config.pc.acr index 4ff67dffaf..a7b756e7be 100644 --- a/pkgcfg/r_config.pc.acr +++ b/pkgcfg/r_config.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_config Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_config -lr_util -Cflags: -I${includedir}/libr +Requires: r_util +Libs: -L${libdir} -lr_config +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_cons.pc.acr b/pkgcfg/r_cons.pc.acr index 7ccd680e32..363c1410fa 100644 --- a/pkgcfg/r_cons.pc.acr +++ b/pkgcfg/r_cons.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_cons Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_cons -lr_util -Cflags: -I${includedir}/libr +Requires: r_util +Libs: -L${libdir} -lr_cons +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_core.pc.acr b/pkgcfg/r_core.pc.acr index da3ddc75b8..37b72ddbe1 100644 --- a/pkgcfg/r_core.pc.acr +++ b/pkgcfg/r_core.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_core Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_core -lr_config -lr_cons -lr_io -lr_util -lr_flag -lr_asm -lr_debug -lr_hash -lr_bin -lr_lang -lr_io -lr_anal -lr_parse -lr_bp -lr_egg -lr_reg -lr_search -lr_syscall -lr_socket -lr_fs @LIBMAGIC@ -lr_crypto -lr_crypto @LIBMAGIC@ @SSL_LDFLAGS@ @CAPSTONE_LDFLAGS@ +Requires: r_config r_cons r_io r_util r_flag r_asm r_debug r_hash r_bin r_lang r_io r_anal r_parse r_bp r_egg r_reg r_search r_syscall r_socket r_fs r_magic r_crypto r_crypto +Libs: -L${libdir} -lr_core @SSL_LDFLAGS@ @CAPSTONE_LDFLAGS@ Cflags: -I${includedir}/libr @SSL_CFLAGS@ @CAPSTONE_CFLAGS@ diff --git a/pkgcfg/r_crypto.pc.acr b/pkgcfg/r_crypto.pc.acr new file mode 100644 index 0000000000..d3d7d36b52 --- /dev/null +++ b/pkgcfg/r_crypto.pc.acr @@ -0,0 +1,11 @@ +prefix=@PREFIX@ +exec_prefix=${prefix} +libdir=@LIBDIR@ +includedir=${prefix}/include + +Name: r_crypto +Description: radare foundation libraries +Version: @VERSION@ +Requires: r_hash r_util r_util r_util +Libs: -L${libdir} -lr_crypto +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_debug.pc.acr b/pkgcfg/r_debug.pc.acr index d8f398b88b..f949798a9a 100644 --- a/pkgcfg/r_debug.pc.acr +++ b/pkgcfg/r_debug.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_debug Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_debug -lr_reg -lr_anal -lr_bp -lr_io -lr_parse -lr_cons -lr_syscall -lr_hash -lr_flag -lr_util -lr_egg -lr_socket -Cflags: -I${includedir}/libr +Requires: r_reg r_anal r_bp r_io r_parse r_cons r_syscall r_hash r_flag r_util r_egg r_socket +Libs: -L${libdir} -lr_debug +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_egg.pc.acr b/pkgcfg/r_egg.pc.acr new file mode 100644 index 0000000000..a0e5813554 --- /dev/null +++ b/pkgcfg/r_egg.pc.acr @@ -0,0 +1,11 @@ +prefix=@PREFIX@ +exec_prefix=${prefix} +libdir=@LIBDIR@ +includedir=${prefix}/include + +Name: r_egg +Description: radare foundation libraries +Version: @VERSION@ +Requires: r_asm r_syscall r_util r_parse r_reg r_flag r_cons +Libs: -L${libdir} -lr_egg +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_flag.pc.acr b/pkgcfg/r_flag.pc.acr index ec127834f9..a22cbbd923 100644 --- a/pkgcfg/r_flag.pc.acr +++ b/pkgcfg/r_flag.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_flag Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_flag -lr_util -Cflags: -I${includedir}/libr +Requires: r_util +Libs: -L${libdir} -lr_flag +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_fs.pc.acr b/pkgcfg/r_fs.pc.acr index ddcc64f56e..d13579c521 100644 --- a/pkgcfg/r_fs.pc.acr +++ b/pkgcfg/r_fs.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_fs Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_fs -lr_util -lr_io -Cflags: -I${includedir}/libr +Requires: r_util r_io +Libs: -L${libdir} -lr_fs +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_hash.pc.acr b/pkgcfg/r_hash.pc.acr index dcd7352475..c6ab9571d4 100644 --- a/pkgcfg/r_hash.pc.acr +++ b/pkgcfg/r_hash.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_hash Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_hash -Cflags: -I${includedir}/libr +Requires: +Libs: -L${libdir} -lr_hash +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_io.pc.acr b/pkgcfg/r_io.pc.acr index b7b32d7e08..55875d8592 100644 --- a/pkgcfg/r_io.pc.acr +++ b/pkgcfg/r_io.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_io Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_io -lr_util -lr_socket -Cflags: -I${includedir}/libr +Requires: r_util r_socket +Libs: -L${libdir} -lr_io +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_lang.pc.acr b/pkgcfg/r_lang.pc.acr index 3358148208..04b7aaffa3 100644 --- a/pkgcfg/r_lang.pc.acr +++ b/pkgcfg/r_lang.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_lang Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_lang -lr_util -lr_cons -Cflags: -I${includedir}/libr +Requires: r_util r_cons +Libs: -L${libdir} -lr_lang +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_magic.pc.acr b/pkgcfg/r_magic.pc.acr index f5a679a4ca..e16925f251 100644 --- a/pkgcfg/r_magic.pc.acr +++ b/pkgcfg/r_magic.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_magic Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} @LIBMAGIC@ -lr_util -Cflags: -I${includedir}/libr +Requires: r_util +Libs: -L${libdir} -lr_magic @LIBMAGIC@ +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_parse.pc.acr b/pkgcfg/r_parse.pc.acr index 956ec740aa..93dd3e3804 100644 --- a/pkgcfg/r_parse.pc.acr +++ b/pkgcfg/r_parse.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_parse Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_parse -lr_flag -lr_util -lr_syscall -lr_reg -lr_cons -Cflags: -I${includedir}/libr +Requires: r_flag r_util r_syscall r_reg r_cons +Libs: -L${libdir} -lr_parse +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_reg.pc.acr b/pkgcfg/r_reg.pc.acr index fb6e0cc28e..a5923e55ea 100644 --- a/pkgcfg/r_reg.pc.acr +++ b/pkgcfg/r_reg.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_reg Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_reg -lr_util -Cflags: -I${includedir}/libr +Requires: r_util +Libs: -L${libdir} -lr_reg +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_search.pc.acr b/pkgcfg/r_search.pc.acr index 2ffa63b72b..db06aa5afa 100644 --- a/pkgcfg/r_search.pc.acr +++ b/pkgcfg/r_search.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_search Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_search -lr_util -Cflags: -I${includedir}/libr +Requires: r_util +Libs: -L${libdir} -lr_search +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_socket.pc.acr b/pkgcfg/r_socket.pc.acr index aeabb7696e..3d1babab3b 100644 --- a/pkgcfg/r_socket.pc.acr +++ b/pkgcfg/r_socket.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_socket Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_socket -lr_util -Cflags: -I${includedir}/libr +Requires: r_util +Libs: -L${libdir} -lr_socket +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_syscall.pc.acr b/pkgcfg/r_syscall.pc.acr index 368ae3e1d6..cd0f11165d 100644 --- a/pkgcfg/r_syscall.pc.acr +++ b/pkgcfg/r_syscall.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_syscall Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_syscall -lr_util -Cflags: -I${includedir}/libr +Requires: r_util +Libs: -L${libdir} -lr_syscall +Cflags: -I${includedir}/libr diff --git a/pkgcfg/r_util.pc.acr b/pkgcfg/r_util.pc.acr index da3ad788dd..aa4f3cb60b 100644 --- a/pkgcfg/r_util.pc.acr +++ b/pkgcfg/r_util.pc.acr @@ -6,6 +6,6 @@ includedir=${prefix}/include Name: r_util Description: radare foundation libraries Version: @VERSION@ -Requires: -Libs: -L${libdir} -lr_util -Cflags: -I${includedir}/libr +Requires: +Libs: -L${libdir} -lr_util @LIBZIP@ @DL_LIBS@ +Cflags: -I${includedir}/libr