annotate test/sharedlib/Makefile.embedded @ 256:7520e2260097
- added to configure some detection on how to compile .s/.S with --noexecstack (or similar), as compilers' defaults are often insane
- since no-execstack handling is now in build, remove .note.GNU-stack section markers (were of limites use, anyways, b/c unportable or implemented inconsistently across platforms)
- some ToDo, etc. updates
author |
Tassilo Philipp |
date |
Sat, 20 May 2017 00:02:59 +0200 |
parents |
3e629dc19168 |
children |
|
rev |
line source |
0
|
1 MAKEFILE = Makefile.embedded
|
|
2 MAKE_CMD = ${MAKE} -f ${MAKEFILE}
|
|
3 TARGET = libsharedlib.so
|
|
4 OBJS = sharedlib.o
|
|
5 CPPFLAGS += -I../../dynload
|
|
6 LDFLAGS += -L../../dynload
|
|
7 LDLIBS += -ldynload_s
|
|
8
|
|
9 ${TARGET}: ${OBJS}
|
|
10 ${CC} -shared -o $@ $? ${LDFLAGS} ${LDLIBS}
|
|
11 all: ${TARGET}
|
|
12 clean:
|
|
13 rm -f ${TARGET} ${OBJS}
|
|
14
|
|
15 sun-gcc:
|
|
16 CC=gcc CFLAGS="${CFLAGS} -fPIC" ${MAKE_CMD} all
|