Skip to content

Commit

Permalink
Linux compatibility tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
FiloSottile committed Oct 6, 2014
1 parent 48904b2 commit c85c3dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -22,3 +22,7 @@ btcd:

addblock:
$(GO) install github.com/conformal/btcd/util/addblock

clean:
-rm bin/*
$(MAKE) -C src/github.com/bitly/dablooms clean
2 changes: 1 addition & 1 deletion src/blockchainr/main.go
Expand Up @@ -171,7 +171,7 @@ func getSignatures(maxHeigth int64, errorFile io.Writer, log btclog.Logger, db b
func search(log btclog.Logger, db btcdb.Db, errorFile io.Writer) map[string][]*rData {
// Setup signal handler
signalChan := make(chan os.Signal, 1)
signal.Notify(signalChan, syscall.SIGINT, syscall.SIGTERM, syscall.SIGUSR1, syscall.SIGINFO)
signal.Notify(signalChan, syscall.SIGINT, syscall.SIGTERM, syscall.SIGUSR1)

filter := dablooms.NewScalingBloom(bloomSize, 0.01, "blockchainr_bloom.bin")
if filter == nil {
Expand Down
4 changes: 2 additions & 2 deletions src/github.com/bitly/dablooms/Makefile
Expand Up @@ -113,7 +113,7 @@ $(BLDDIR)/libdablooms.a: $(OBJS_LIBDABLOOMS)

$(BLDDIR)/libdablooms.$(SO_EXT): $(OBJS_LIBDABLOOMS)
@echo " SO " $@
@$(CC) -o $@ $(ALL_CFLAGS) $(SHARED_LDFLAGS) $(ALL_LDFLAGS) $^
@$(CC) -o $@ $^ $(ALL_CFLAGS) $(SHARED_LDFLAGS) $(ALL_LDFLAGS)

$(patsubst %, $(BLDDIR)/%, $(LIB_SYMLNKS)): %: $(BLDDIR)/libdablooms.$(SO_EXT)
@echo " SYMLNK " $@
Expand All @@ -122,7 +122,7 @@ $(patsubst %, $(BLDDIR)/%, $(LIB_SYMLNKS)): %: $(BLDDIR)/libdablooms.$(SO_EXT)

$(BLDDIR)/test_dablooms: $(OBJS_TESTS) $(BLDDIR)/libdablooms.a
@echo " LD " $@
@$(CC) -o $@ $(ALL_CFLAGS) $(ALL_LDFLAGS) $(OBJS_TESTS) $(BLDDIR)/libdablooms.a
@$(CC) -o $@ $(OBJS_TESTS) $(BLDDIR)/libdablooms.a $(ALL_CFLAGS) $(ALL_LDFLAGS)

test: $(BLDDIR)/test_dablooms
@$(BLDDIR)/test_dablooms $(BLDDIR)/testbloom.bin $(WORDS)
Expand Down

0 comments on commit c85c3dd

Please sign in to comment.