Skip to content

Commit

Permalink
Fix hex package and Makefile for non mac
Browse files Browse the repository at this point in the history
  • Loading branch information
acalejos committed May 17, 2023
1 parent f9504dd commit cdcd24a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ else
CMAKE_FLAGS += -DUSE_CUDA=OFF -DBUILD_WITH_CUDA_CUB=OFF
endif

#C_SRCS = $(EXGBOOST_DIR)/src/exgboost.c $(EXGBOOST_DIR)/include/exgboost.h
C_SRCS = $(wildcard $(EXGBOOST_DIR)/src/*.c) $(wildcard $(EXGBOOST_DIR)/include/*.h)

LDFLAGS = -L$(EXGBOOST_CACHE_LIB_DIR)/lib -lxgboost
Expand All @@ -45,7 +44,7 @@ else
# in ./lib regardless of the absolute location. This way priv can be safely
# packed into an Elixir release. Also, we use $$ to escape Makefile variable
# and single quotes to escape shell variable
LDFLAGS += -Wl,-rpath,'$$ORIGIN/lib'
LDFLAGS += -Wl,-rpath,'$$ORIGIN/lib/lib'
POST_INSTALL = $(NOOP)
endif

Expand Down
11 changes: 10 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@ defmodule Exgboost.MixProject do
[
maintainers: ["Andres Alejos"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/acalejos/exgboost"}
links: %{"GitHub" => "https://github.com/acalejos/exgboost"},
files: [
"lib",
"mix.exs",
"c",
"Makefile",
"README.md",
"LICENSE",
".formatter.exs"
]
]
end

Expand Down

0 comments on commit cdcd24a

Please sign in to comment.