Группа :: Сети/Прочее
Пакет: sendip
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: sendip-2.5-alt-makefile.patch
Скачать
Скачать
--- sendip-2.5/Makefile.orig 2006-03-20 13:08:46 +0500
+++ sendip-2.5/Makefile 2006-06-05 18:38:10 +0600
@@ -9,13 +9,14 @@
#INSTALL=/usr/ucb/install
CFLAGS= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \
- -Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \
+ -Wstrict-prototypes -Wnested-externs -Winline -g -Wcast-align \
-DSENDIP_LIBS=\"$(LIBDIR)\"
#-Wcast-align causes problems on solaris, but not serious ones
LDFLAGS= -g -rdynamic -lm
#LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm
LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl
-LDFLAGS_LINUX= -g -rdynamic -ldl -lm
+LDFLAGS_LINUX= -g -rdynamic
+LDADD= -ldl -lm
LIBCFLAGS= -shared
CC= gcc
@@ -32,7 +33,7 @@
#there has to be a nice way to do this
sendip: sendip.o gnugetopt.o gnugetopt1.o compact.o
sh -c "if [ `uname` = Linux ] ; then \
-$(CC) -o $@ $(LDFLAGS_LINUX) $(CFLAGS) $+ ; \
+$(CC) -o $@ $(LDFLAGS_LINUX) $(CFLAGS) $+ $(LDADD) ; \
elif [ `uname` = SunOS ] ; then \
$(CC) -o $@ $(LDFLAGS_SOLARIS) $(CFLAGS) $+ ;\
else \