Skip to content

Commit

Permalink
fix for ar in older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hasindu2008 committed Dec 18, 2023
1 parent 536dd33 commit a58c70e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ slow5lib: $(SHAREDLIB) $(STATICLIB)
$(STATICLIB): $(OBJ) $(SVBLIB) $(SVB16LIB)
cp $(SVBLIB) $@
mkdir -p $(BUILD_DIR)/tmp
$(AR) x $(SVB16LIB) --output $(BUILD_DIR)/tmp
cp $(SVB16LIB) $(BUILD_DIR)/tmp/tmp.a
cd $(BUILD_DIR)/tmp && $(AR) x tmp.a && cd ../..
$(AR) rcs $@ $(OBJ) $(BUILD_DIR)/tmp/*.o
rm -r $(BUILD_DIR)/tmp
rm -rf $(BUILD_DIR)/tmp

$(SHAREDLIB): $(OBJ) $(SVBLIB) $(SVB16LIB)
$(CC) $(CFLAGS) -shared $^ -o $@ $(LDFLAGS)
Expand Down

0 comments on commit a58c70e

Please sign in to comment.