-
Notifications
You must be signed in to change notification settings - Fork 30
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
Use libdir variable in pktsetup Makefile #15
Conversation
Hm... better way would be to ask udev for correct directory and not to try guessing it. Seems that pkg-config knows it and There is also Anyway, there is a PKG_PROG_PKG_CONFIG macro for autoconf which fills path to pkg-config executable and then you can execute pkg-config with --variable parameter to retrieve needed udev path. This should work also with old pkg-config versions. |
Maybe something like this putting above
And then using UDEVDIR in Makefile.am? It is untested. |
I just shared this because I'm trying to get rid of |
|
Hi, I made a test locally on the udftools 2.0 tarball I added this in the configure.ac (your code without the
the Makefile.am looks like this
and Here is how my libudev.pc looks like
There is no error but the udev rules aren't installed under |
You are looking at the wrong file. pkg-config is called with udev, not with libudev. Search for udev.pc |
Can you recheck udev.pc? |
Sorry. I completely forgot about this. It is working fine locally. I close this and I'll send another PR done as you suggested. |
I use
/usr/lib64
so it would be nice to use $(libdir) instead of using a hardcoded/lib
value in the Makefile