Remove some debug cruft from the Makefiles and make them ${.OBJDIR}
friendly.
This commit is contained in:
parent
5f7a48ef1e
commit
c37420b0d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133835
@ -1,11 +1,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= ttls1
|
||||
LDADD+= -L../libxx -lxx -Wl,--rpath=${.CURDIR}/../libxx
|
||||
LDADD+= -L../libyy -lyy -Wl,--rpath=${.CURDIR}/../libyy
|
||||
LDADD+= -L${.CURDIR}/../../../../lib/libc -lc
|
||||
LDADD+= -Wl,--rpath=${.CURDIR}/../../../../lib/libc
|
||||
LDADD+= -Wl,--dynamic-linker=${.CURDIR}/../../../../libexec/rtld-elf/ld-elf.so.1
|
||||
LDADD+= -L../libxx -lxx -Wl,--rpath=${.OBJDIR}/../libxx
|
||||
LDADD+= -L../libyy -lyy -Wl,--rpath=${.OBJDIR}/../libyy
|
||||
NOMAN= t
|
||||
DEBUG_FLAGS= -g
|
||||
|
||||
|
@ -2,12 +2,6 @@
|
||||
|
||||
PROG= ttls2
|
||||
LDADD+= -lpthread
|
||||
LDADD+= -Wl,--rpath=${.CURDIR}/../../../../lib/libpthread
|
||||
#LDADD+= -lthr
|
||||
#LDADD+= -Wl,--rpath=${.CURDIR}/../../../../lib/libthr
|
||||
LDADD+= -L${.CURDIR}/../../../../lib/libc -lc
|
||||
LDADD+= -Wl,--rpath=${.CURDIR}/../../../../lib/libc
|
||||
LDADD+= -Wl,--dynamic-linker=${.CURDIR}/../../../../libexec/rtld-elf/ld-elf.so.1
|
||||
NOMAN= t
|
||||
DEBUG_FLAGS= -g
|
||||
|
||||
|
@ -3,22 +3,22 @@
|
||||
all: ttls3
|
||||
|
||||
LDFLAGS=-shared -Bsymbolic --allow-shlib-undefined
|
||||
CFLAGS+= -L${.CURDIR}/../../../../lib/libc -lc -lthr
|
||||
CFLAGS+= -Wl,--rpath=${.CURDIR}/../../../../lib/libc
|
||||
CFLAGS+= -lpthread
|
||||
CFLAGS+= -Wl,--rpath=${.OBJDIR}
|
||||
CFLAGS+= -Wl,--dynamic-linker=${.CURDIR}/../../../../libexec/rtld-elf/ld-elf.so.1
|
||||
|
||||
tls-lib: elftls.S
|
||||
gcc -c -o elftls.o elftls.S
|
||||
gcc -c -o elftls.o ${.CURDIR}/elftls.S
|
||||
ld $(LDFLAGS) elftls.o -soname libtls.so.1 -o libtls.so.1
|
||||
ln -sf libtls.so.1 libtls.so
|
||||
|
||||
tls-test-lib: tls-lib tls-test-lib.c
|
||||
gcc -c -o tls-test.o tls-test-lib.c
|
||||
gcc -c -o tls-test.o ${.CURDIR}/tls-test-lib.c
|
||||
ld $(LDFLAGS) tls-test.o libtls.so.1 -rpath=${.OBJDIR} -soname libtls-test.so.1 -o libtls-test.so.1
|
||||
|
||||
ttls3: tls-test-lib tls-test.c
|
||||
gcc $(CFLAGS) -rdynamic -o ttls3 tls-test.c
|
||||
gcc $(CFLAGS) -rdynamic -o ttls3 ${.CURDIR}/tls-test.c
|
||||
|
||||
clean:
|
||||
rm -f *.o libtls.so* libtls-test.so* ttls3
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user