Skip to content

Commit cdcd24a

Browse files
committed
Fix hex package and Makefile for non mac
1 parent f9504dd commit cdcd24a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ else
2828
CMAKE_FLAGS += -DUSE_CUDA=OFF -DBUILD_WITH_CUDA_CUB=OFF
2929
endif
3030

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

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

mix.exs

+10-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ defmodule Exgboost.MixProject do
3737
[
3838
maintainers: ["Andres Alejos"],
3939
licenses: ["Apache-2.0"],
40-
links: %{"GitHub" => "https://github.com/acalejos/exgboost"}
40+
links: %{"GitHub" => "https://github.com/acalejos/exgboost"},
41+
files: [
42+
"lib",
43+
"mix.exs",
44+
"c",
45+
"Makefile",
46+
"README.md",
47+
"LICENSE",
48+
".formatter.exs"
49+
]
4150
]
4251
end
4352

0 commit comments

Comments
 (0)