aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--src/repl.c3
2 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 9fc30007..182cab81 100644
--- a/Makefile
+++ b/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]
diff --git a/src/repl.c b/src/repl.c
index 78dfc110..f5ec0abe 100644
--- a/src/repl.c
+++ b/src/repl.c
@@ -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;