Skip to content

Commit

Permalink
Fix cctz static lib (#594)
Browse files Browse the repository at this point in the history
Fixes #593
  • Loading branch information
barracuda156 authored Nov 20, 2023
1 parent f561f55 commit 505277d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ $(SHLIB): $(OBJECTS)

$(OBJECTS): cctz/libcctz.a

# Makefile of libcctz has correct flags, but they are not picked, since Makevars overrides them.
# Alternatively, ranlib should be run after ar. Otherwise the archive may have no ToC, and build fails.
ARFLAGS = rcs

cctz/libcctz.a:
(cd cctz && \
$(MAKE) libcctz.a CC="$(CC)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" AR="$(AR)" ARFLAGS=$(ARFLAGS) CXXPICFLAGS="$(CXXPICFLAGS)")
Expand Down

0 comments on commit 505277d

Please sign in to comment.