add make pic

This commit is contained in:
leitner
2018-08-24 12:01:02 +00:00
parent 47d88ede64
commit 09e54d86e0

View File

@@ -5,6 +5,9 @@ all: libowfat-warning t1 t2 parse dumpidx idx2ldif addindex bindrequest tinyldap
tinyldap_standalone tinyldap_debug ldapclient ldapclient_str \
md5password mysql2ldif acl dumpacls ldapdelete asn1dump tls.a x # t6 # t
pic pie:
$(MAKE) all PIC=-fPIC LDFLAGS=-fpie
asn1.a: fmt_asn1intpayload.o fmt_asn1length.o fmt_asn1tag.o \
fmt_asn1int.o fmt_asn1string.o fmt_asn1transparent.o scan_asn1tag.o \
scan_asn1length.o scan_asn1int.o scan_asn1string.o scan_asn1INTEGER.o \
@@ -57,6 +60,8 @@ DIET=
CFLAGS=-pipe -I. -g -fprofile-arcs -ftest-coverage
endif
CFLAGS+=$(PIC)
ifneq ($(DIET),)
LIBS+=-llatin1
else