From 09e54d86e012b698536ebc874bac62ee09b39b30 Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 24 Aug 2018 12:01:02 +0000 Subject: [PATCH] add make pic --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index bf9a8fb..27e2cf8 100644 --- a/Makefile +++ b/Makefile @@ -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