mirror of
https://github.com/janet-lang/janet
synced 2026-08-30 14:18:52 +00:00
Add example file for compiling native modules (hello.so).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user