[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make obj buglet in gnu/egcs



when "make obj" builds obj subdirectories (as apposed to links to
/usr/obj/..." the command "make -f Makefile.bsd-wrapper prereq" in
gnu/egcs/libf2c fails with

# fake g771 existence
cd /.1/src-current/gnu/egcs/libf2c/../obj/gcc && touch f771
/bin/sh: cd: /.1/src-current/gnu/egcs/obj/gcc - No such file or directory
*** Error code 1

The above command was a result of "make prereq" in /usr/src/include.
When the obj-> links are used, there is indeed a 'gcc' subdirectory. When
they are not links, there isn't so the 'cd' fails.

I thought I could work around the little EGCSOBJDIR hack but haven't been
successful yet. I can't get gcc to look in ../gcc/obj for some of it's
headers during the configure process. The include directives end with
"-I/gcc" which also looks mighty strange. I need to somehow change that to
be "-I../gcc/obj". Again, such a move will break those who don't do "make
obj" in the beginning.

Is there an elegant solution to this?

-- 
Network Security Technologies Inc. - Commercial support for OpenBSD
www.netsec.net       (703) 561-0420       matthew.patton@netsec.net

"Government is not reason; it is not eloquence; it is force!
 Like fire, it is a dangerous servant and a fearful master."
  - George Washington