Commit b7bd5002 authored by Dimitris Lampridis's avatar Dimitris Lampridis

sw: prefer direct link to static libmockturtle

It is not guaranteed that the order of -Wl, and -l arguments are preserved.
parent 1967898d
......@@ -52,8 +52,8 @@ $(LIB): $(OBJS)
$(AR) $(ARFLAGS) $@ $^
# We link statically to mockturtle to avoid deploying libmockturtle.so every time we deploy libwrtd.so
$(LIBSO_XYZ): $(OBJS)
$(CC) -shared $^ -Wl,-soname,$(LIBSO_X) -L$(WRTD_DEP_TRTL)/software/lib -Wl,-Bstatic -lmockturtle -Wl,-Bdynamic -o $@
$(LIBSO_XYZ): $(OBJS) $(WRTD_DEP_TRTL)/software/lib/libmockturtle.a
$(CC) -shared $^ -Wl,-soname,$(LIBSO_X) -o $@
$(LIBSO): $(LIBSO_XYZ)
ln -sf $< $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment