Remove dl lib requirement
This commit is contained in:
parent
2666f19b16
commit
faad7fc97d
6
Makefile
6
Makefile
@ -30,7 +30,7 @@ G=-ggdb
|
||||
O=-Og
|
||||
CFLAGS=$(CCONFIG) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS) $(LTO)
|
||||
CFLAGS_PLACEHOLDER="$$(echo -e '\033[2m<flags...>\033[m')"
|
||||
LDLIBS=-lgc -lcord -lm -lunistring -lgmp -ldl
|
||||
LDLIBS=-lgc -lcord -lm -lunistring -lgmp
|
||||
COMPILER_OBJS=$(patsubst %.c,%.o,$(wildcard src/*.c))
|
||||
STDLIB_OBJS=$(patsubst %.c,%.o,$(wildcard src/stdlib/*.c))
|
||||
TESTS=$(patsubst test/%.tm,test/results/%.tm.testresult,$(wildcard test/*.tm))
|
||||
@ -44,8 +44,8 @@ build/tomo: $(STDLIB_OBJS) $(COMPILER_OBJS)
|
||||
|
||||
build/libtomo.so: $(STDLIB_OBJS)
|
||||
@mkdir -p build
|
||||
@echo $(CC) $^ $(CFLAGS_PLACEHOLDER) $(OSFLAGS) -lgc -lcord -lm -lunistring -lgmp -ldl -Wl,-soname,libtomo.so -shared -o $@
|
||||
@$(CC) $^ $(CFLAGS) $(OSFLAGS) -lgc -lcord -lm -lunistring -lgmp -ldl -Wl,-soname,libtomo.so -shared -o $@
|
||||
@echo $(CC) $^ $(CFLAGS_PLACEHOLDER) $(OSFLAGS) -lgc -lcord -lm -lunistring -lgmp -Wl,-soname,libtomo.so -shared -o $@
|
||||
@$(CC) $^ $(CFLAGS) $(OSFLAGS) -lgc -lcord -lm -lunistring -lgmp -Wl,-soname,libtomo.so -shared -o $@
|
||||
|
||||
tags:
|
||||
ctags src/*.[ch] src/stdlib/*.[ch]
|
||||
|
@ -43,9 +43,6 @@ static PUREFUNC repl_binding_t *get_repl_binding(env_t *env, const char *name)
|
||||
void repl(void)
|
||||
{
|
||||
env_t *env = global_env();
|
||||
void *dl = dlopen("libtomo.so", RTLD_LAZY);
|
||||
if (!dl) print_err("I couldn't find libtomo.so in your library paths");
|
||||
|
||||
size_t buf_size = 0;
|
||||
char *line = NULL;
|
||||
ssize_t len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user