Make kqtest statically linked

git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@638 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
This commit is contained in:
mheily 2013-04-30 02:08:26 +00:00
parent d161704b91
commit 108d390354
2 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,5 @@
# AUTOMATICALLY GENERATED -- DO NOT EDIT
AR = ar
BINDIR = $(EPREFIX)/bin
CC = cc
DATADIR = $(DATAROOTDIR)
@ -20,6 +21,7 @@ PKGDATADIR = $(DATADIR)/$(PACKAGE)
PKGINCLUDEDIR = $(INCLUDEDIR)/$(PACKAGE)
PKGLIBDIR = $(LIBDIR)/$(PACKAGE)
PREFIX = /usr/local
RANLIB = ranlib
SBINDIR = $(EPREFIX)/sbin
SHAREDSTATEDIR = $(PREFIX)/com
SYSCONFDIR = $(PREFIX)/etc
@ -168,7 +170,7 @@ install:
ln -s kqueue.2 $(DESTDIR)$(MANDIR)/man2/kevent.2
kqtest: test/main.o test/kevent.o test/test.o test/proc.o test/read.o test/signal.o test/timer.o test/vnode.o test/user.o
$(LD) -o kqtest -L . -Wl,-rpath,. -L . $(LDFLAGS) test/main.o test/kevent.o test/test.o test/proc.o test/read.o test/signal.o test/timer.o test/vnode.o test/user.o -lpthread -lrt -lkqueue $(LDADD)
$(LD) -o kqtest -L . -Wl,-rpath,. -L . $(LDFLAGS) test/main.o test/kevent.o test/test.o test/proc.o test/read.o test/signal.o test/timer.o test/vnode.o test/user.o libkqueue.a -lpthread -lrt $(LDADD)
libkqueue-2.0.tar.gz:
rm -rf libkqueue-2.0

View File

@ -143,11 +143,7 @@ project.add(Header.new(
project.add(Manual.new('kqueue.2', :alias => 'kevent.2'))
test_ldadd = get_ldadd()
if SystemType.host =~ /-androideabi$/
test_ldadd += ' libkqueue.a'
else
test_ldadd += ' -lkqueue'
end
if Platform.is_windows?
project.add(
Test.new(