-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hashlink 1.12 #100517
hashlink 1.12 #100517
Conversation
Maybe due to HaxeFoundation/hashlink@880b81d Looks like upstream bundles |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To keep this pull request open, add a |
I tried to create a PR for this update but The make file issue is indeed as diagnosed above, so until the next version is released (which probably won't be for a while), the best solution would be to fix it manually. Also, a bunch of the other patches can now be removed because with 1.12, the rpath issues they were trying to address have been resolved. Just requires setting the prefix for both make commands. def install
inreplace "Makefile", /PCRE_INCLUDE =/, "PCRE_FLAGS ="
system "make", "PREFIX=#{libexec}"
system "make", "install", "PREFIX=#{libexec}"
bin.install_symlink Dir[libexec/"bin/*"]
end |
bfc97a4
to
7794a04
Compare
@tobil4sk adopted your build update. |
Thanks! After a conversation in #99237, it would seem that adding the rpath to the libraries is still necessary, so this should address that issue: def install
# For Linux, also set RPATH in LIBFLAGS, so that the linker will also add the RPATH to .hdll files.
inreplace "Makefile", "LIBFLAGS =", "LIBFLAGS = -Wl,-rpath,${INSTALL_LIB_DIR}"
inreplace "Makefile", /PCRE_INCLUDE =/, "PCRE_FLAGS ="
system "make", "PREFIX=#{libexec}"
system "make", "install", "PREFIX=#{libexec}"
bin.install_symlink Dir[libexec/"bin/*"]
end |
Hm, looking at the other errors, perhaps setting the rpath for the main executables is still necessary for now on macos. |
So maybe something like this is needed until the makefile is fixed: def install
# For Linux, also set RPATH in LIBFLAGS, so that the linker will also add the RPATH to .hdll files.
inreplace "Makefile", "LIBFLAGS =", "LIBFLAGS = -Wl,-rpath,${INSTALL_LIB_DIR}" if os.linux?
inreplace "Makefile", /PCRE_INCLUDE =/, "PCRE_FLAGS ="
if os.mac?
# make file doesn't set rpath on mac yet
system "make", "PREFIX=#{libexec}", "EXTRA_LFLAGS=-Wl,-rpath,#{libexec}/lib"
elsif os.linux?
system "make", "PREFIX=#{libexec}"
end
system "make", "install", "PREFIX=#{libexec}"
bin.install_symlink Dir[libexec/"bin/*"]
end |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To keep this pull request open, add a |
let's give it another run |
Signed-off-by: Rui Chen <[email protected]>
7794a04
to
5c318f1
Compare
Also @tobil4sk, feel free to submit a new PR. |
Alright, thanks! I might do that just to check that the |
I've opened #113509. |
Thanks @tobil4sk! |
Created with
brew bump-formula-pr
.