Mercurial > pub > dyncall > dyncall
annotate test/resolve_self/Makefile.generic @ 620:14c582c828b9
- test/resolve_self: use a more portable linker option to export exec symbols (fixes some builds)
author | Tassilo Philipp |
---|---|
date | Mon, 03 Oct 2022 16:52:15 +0200 |
parents | 7520e2260097 |
children | 2536413edfd8 |
rev | line source |
---|---|
0 | 1 APP = resolve_self |
2 OBJS = main.o | |
3 SRCTOP = ${VPATH}/../.. | |
4 BLDTOP = ../.. | |
5 CFLAGS += -I${SRCTOP}/dynload | |
620
14c582c828b9
- test/resolve_self: use a more portable linker option to export exec symbols (fixes some builds)
Tassilo Philipp
parents:
256
diff
changeset
|
6 LDFLAGS += -Wl,--export-dynamic |
0 | 7 LDLIBS_D = -L${BLDTOP}/dynload -ldynload_s |
8 .PHONY: all clean install | |
9 all: ${APP} | |
10 ${APP}: ${OBJS} | |
11 ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS_D} ${LDLIBS} -o ${APP} | |
12 clean: | |
13 rm -f ${APP} ${OBJS} | |
14 install: | |
15 mkdir -p ${PREFIX}/test | |
16 cp ${APP} ${PREFIX}/test | |
17 |