-
Notifications
You must be signed in to change notification settings - Fork 51
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
Using a custom include and libs path for zlib #218
Comments
Confirming one aspect of timbunce#218.
It is never assigned to, which in turn means that the 'INC' element in WriteMakefile's arguments is always undefined. No tests would fail if we were to apply this patch. Confirming one aspect of timbunce#218.
I've been investigating your arguments in several branches in my git fork of the devel-nytprof repository. Here are my findings. First, I can confirm that the statement branch: https://github.com/jkeenan/devel-nytprof/tree/gh-218-INC-20240503 Second, notwithstanding the above, I believe you can currently pass custom header files to branch: https://github.com/jkeenan/devel-nytprof/tree/debug-makefilepl-20240504 In that branch I insert some
... I now observe:
Wouldn't that satisfy your needs? |
Yes, that solves it for the header file path. (I can't see how changing There is the remaining issue with setting the library path or passing the linker flag |
I am extremely reluctant to modify Devel-NYTProf to further accommodate your concerns. However, the following documentation excerpts may suggest a path forward for you. From Devel-NYTProf's
Now we call
Now we call
I doubt the following patch will completely work, but it may provide a starting point for your further explorations.
|
I agree it's a niche use case. Before submitting this bug report, I edited Makefile.PL locally and did almost exactly what you describe: push the additional linker argument to
But this removes the default flags like |
Well, I will not be the person to provide that something more robust. ;-) I assumed (partial) maintenance responsibilities for Devel-NYTProf only because changes in Perl 5 several years ago were causing test failures. I have no expertise in many areas of the library (C, XS, Javascript) and so I only handle changes that are within my scope (Perl) and that I can be absolutely certain will do no harm. Consequently, I can't consider a request for a new feature unless there is wide demand for it. So if you have something that you have a workaround that works for you, please use it! |
I'm using a bare bones sysroot (same as in issue #217 in fact) that doesn't have zlib installed. I have compiled and installed zlib in a different path, say $XYZZY, so I'd like to set a custom include path $XYZZY/include and custom linker flag -L$XYZZY/lib.
Makefile.PL has
my $INCLUDE;
variable, which is passed to WriteMakeFile(), but the variable is always undef. Solution is:Then configure as:
However, there's no mechanism to set a custom library path. Essentially, I want to push something to
@libs
before it's passed to WriteMakeFile().The text was updated successfully, but these errors were encountered: