Skip to content

Commit

Permalink
Clean up STP src
Browse files Browse the repository at this point in the history
The SNAME is exported in the general stp Makefile. The symbolic link is created there too.
Remove both actions from the special case as they are handled in the general case.
  • Loading branch information
Vekhir committed Aug 13, 2023
1 parent 9f83b21 commit 8fb1480
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/vendor/stp/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ else
CP = cp -df
endif

ifeq ($(OSTYPE), Darwin)
LIBRARIES=lib/libstp.dylib
SNAME = libstp.dylib
else
LIBRARIES=lib/libstp.so.1 lib/libstp.so
SNAME = libstp.so.1
endif
LIBRARIES=lib/$(SNAME)

.PHONY: all
all: $(LIBRARIES)
Expand Down Expand Up @@ -72,12 +66,6 @@ lib/$(SNAME): c_interface/c_interface.o \
@# We use --whole-archive to ensure that all symbols in to-sat are used
$(CXX) $(CFLAGS) $(SHAREDFLAG) -Wl,$(SONAMEFLAG),$(SNAME) -o $@ $(LIBCCARGS)

ifneq ($(OSTYPE), Darwin)
lib/libstp.so: lib/libstp.so.1
-rm -f $@
(cd lib; ln -s libstp.so.1 libstp.so)
endif


# During the build of AST some classes are built that most of the other
# classes depend upon. So in a parallel make, AST should be made first.
Expand Down

0 comments on commit 8fb1480

Please sign in to comment.