This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix testsuite/23609, obj-c++ tests fail (GNU runtime)



On Aug 30, 2005, at 1:16 PM, Andrew Pinski wrote:


The problem here is that the shared library path is not being set correctly.
This corrects the issue but the tests still fail for a different problem,
a front-end issue rather than a testsuite bug.


OK? Tested on x86_64-linux-gnu.

That one did not work on powerpc-darwin or when libobjc was built. This patch fixes the issue and also uses target-libpath.exp to set the library pathes env variable so that can be updated for new targets without changing obj-c++.exp.

I am going to commit this as libobjc maintainer.

Thanks,
Andrew Pinski

ChangeLog:

	* lib/obj-c++.exp: Include target-libpath.exp.
	(obj-c++_link_flags): Look for the GNU libobjc library
	and set the library path to include it.
	Don't manually set LD_LIBRARY_PATH (etc.) but call
	set_ld_library_path_env_vars instead.
	(obj-c++_target_compile): Don't set library path or
	linker flags because they are already set correctly
	in obj-c++_link_flags.


Attachment: t.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]