What is the best way to pass an additional option to linker during the port build?
Is it possible to pass the same option to all dependencies built for this port?
For example, I want to add the option "-rpath /root/lib" for ftp/wget port. I can do it adding the line
to port's Makefile, but it can be overwritten during port update, and maybe it is not the best way - modify Makefile. And if I want to pass this option to all dependencies of the port - I should modify all Makefiles, it's difficult task.
Maybe there is a better way??
Is it possible to pass the same option to all dependencies built for this port?
For example, I want to add the option "-rpath /root/lib" for ftp/wget port. I can do it adding the line
Code:
LDFLAGS+=-rpath /root/lib
Maybe there is a better way??