Add example file for compiling native modules (hello.so).

This commit is contained in:
Calvin Rose
2018-04-26 13:13:31 -04:00
parent 8b9bd41205
commit 99709a68fd
10 changed files with 370 additions and 11 deletions
+5 -1
View File
@@ -25,7 +25,11 @@
PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -s -O3
# CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -Wl,--dynamic-list=src/exported.list -s -O3
# TODO - when api is finalized, only export public symbols instead of using rdynamic
# which exports all symbols.
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -rdynamic -s -O3
CLIBS=-lm -ldl
PREFIX=/usr/local
DST_TARGET=dst