Skip to content

Commit

Permalink
Merge pull request #90 from tknarr/shlib_version_makefile_fix
Browse files Browse the repository at this point in the history
Versioned shared library makefile fixes
  • Loading branch information
noloader committed Dec 26, 2015
2 parents f84b396 + 09d194d commit ca73945
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,17 @@ else
ifeq ($(HAS_SOLIB_VERSION),1)
-$(RM) $(DESTDIR)$(PREFIX)/lib/libcryptopp.so$(SOLIB_COMPAT_SUFFIX)
-$(RM) $(DESTDIR)$(PREFIX)/lib/libcryptopp.so
$(LDCONF) $(PREFIX)/lib
$(LDCONF) $(DESTDIR)$(PREFIX)/lib
endif
endif

libcryptopp.a: public_service | $(LIBOBJS)
$(AR) $(ARFLAGS) $@ $(LIBOBJS)
$(RANLIB) $@

.PHONY: libcryptopp.so
libcryptopp.so: libcryptopp$(SOLIB_VERSION_SUFFIX)

libcryptopp.so$(SOLIB_VERSION_SUFFIX): public_service | $(LIBOBJS)
$(CXX) -shared $(SOLIB_FLAGS) -o $@ $(CXXFLAGS) $(GOLD_OPTION) $(LIBOBJS) $(LDLIBS)
ifeq ($(HAS_SOLIB_VERSION),1)
Expand Down

0 comments on commit ca73945

Please sign in to comment.