|
@@ -1,16 +1,30 @@
|
|
|
|
|
|
include ../../Makefile.defs
|
|
|
-
|
|
|
auto_gen=
|
|
|
NAME=auth_identity.so
|
|
|
|
|
|
+ifeq ($(CROSS_COMPILE),)
|
|
|
+CURL_BUILDER=$(shell \
|
|
|
+ if pkg-config --exists libcurl; then \
|
|
|
+ echo 'pkg-config libcurl'; \
|
|
|
+ else \
|
|
|
+ which curl-config; \
|
|
|
+ fi)
|
|
|
+endif
|
|
|
+
|
|
|
+ifneq ($(CURL_BUILDER),)
|
|
|
+ DEFS += $(shell $(CURL_BUILDER) --cflags )
|
|
|
+ LIBS += $(shell $(CURL_BUILDER) --libs)
|
|
|
+else
|
|
|
+ DEFS+=-I$(LOCALBASE)/include
|
|
|
+ LIBS+=-L$(LOCALBASE)/lib -lcurl
|
|
|
+endif
|
|
|
+
|
|
|
DEFS+= -Wall -I$(LOCALBASE)/ssl/include
|
|
|
-#
|
|
|
# Dynamic linking
|
|
|
#
|
|
|
-LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto -lcurl
|
|
|
+LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto
|
|
|
|
|
|
-#
|
|
|
# Static linking, if you'd like to use TLS and AUTH_IDENTITY at the same time
|
|
|
#
|
|
|
#LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt -lldap
|