VFLAGS = -DRADIUSD_MAJOR_VERSION=$(RADIUSD_MAJOR_VERSION)
VFLAGS += -DRADIUSD_MINOR_VERSION=$(RADIUSD_MINOR_VERSION)
BINARIES = radiusd radwho radzap radclient radrelay
+LT_BIN_FLAGS =
#
# Not using shared libraries, add in ALL known static modules
#
# For static linking...
#
+LT_BIN_FLAGS = -static -all-static
+
SUB_MODULES += rlm_eap_md5 rlm_eap_leap rlm_eap_tls rlm_eap_ttls rlm_eap_sim
SUB_MODULES += rlm_eap_peap rlm_eap_mschapv2 rlm_eap_gtc
SUB_MODULES += rlm_sql_db2 rlm_sql_freetds rlm_sql_iodbc rlm_sql_mysql
radiusd: $(SERVER_OBJS) ../lib/libradius.a $(MODULE_OBJS)
$(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self \
- $(CFLAGS) $(LDFLAGS) -o $@ \
+ $(LT_BIN_FLAGS) $(CFLAGS) $(LDFLAGS) -o $@ \
$(SERVER_OBJS) $(LCRYPT) $(MODULE_LIBS) $(LIBS) \
$(PTHREADLIB) $(LIBLTDL) $(LCRYPT)