ifndef NO_STATIC_LIB, compile mkicons statically to avoid problems during the build due to dynamic libs not being in the LD_LIBRARY_PATH.

This commit is contained in:
cls%seawood.org 1998-10-05 21:54:08 +00:00
Родитель 7173bac0e6
Коммит 3884ca16d2
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -171,13 +171,17 @@ MKICONS_DSOS = \
MKICONS_EXTRA = $(NSPR_LDFLAGS) $(NSPR_LIBS) $(MKICONS_DSOS) $(OS_LIBS) -lm
ifndef NO_STATIC_LIB
CFLAGS_STATIC = -static
endif
#######################################################################
# Rules to build mkicons program and then icondata.c
# XXX We need to reach into the Image Library modules's source directory to
# get the file if.h
$(MKICONS_EXE): mkicons.cpp $(MKICONS_LIB)
$(CCC) $(CFLAGS) -o $@ -I$(topsrcdir)/modules/libimg/src $< $(XFE_MKICONS_BIN_LDPATH) $(MKICONS_LIB) $(MKICONS_EXTRA)
$(CCC) $(CFLAGS_STATIC) $(CFLAGS) -o $@ -I$(topsrcdir)/modules/libimg/src $< $(XFE_MKICONS_BIN_LDPATH) $(MKICONS_LIB) $(MKICONS_EXTRA)
$(ICONLIST): $(ICONS)
@echo Adding icons to $@