Bug 351893 - Add VPATH support for eglib
Summary: Add VPATH support for eglib
Status: RESOLVED FIXED
Alias: None
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: SVN
Hardware: PowerPC-64 Mac OS X 10.5
: P5 - None : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: build, patch
Depends on:
Blocks:
 
Reported: 2008-01-05 16:31 UTC by Andreas Färber
Modified: 2008-01-05 17:17 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed patch (445 bytes, patch)
2008-01-05 16:31 UTC, Andreas Färber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Färber 2008-01-05 16:31:50 UTC
Created attachment 189449 [details]
proposed patch

Building Mono --with-glib=embedded using VPATH fails:

/bin/sh ../../libtool --tag=CC   --mode=compile gcc -arch ppc64 -DHAVE_CONFIG_H -I. -I../.. -I../../../../mono/mono/utils -I../../../../mono -I../../../../mono/mono  -I../../../../mono/eglib/src  -I/Users/andreas/Mono/latest64/include -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent   -g -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT mono-ehash.lo -MD -MP -MF .deps/mono-ehash.Tpo -c -o mono-ehash.lo ../../../../mono/mono/utils/mono-ehash.c
 gcc -arch ppc64 -DHAVE_CONFIG_H -I. -I../.. -I../../../../mono/mono/utils -I../../../../mono -I../../../../mono/mono -I../../../../mono/eglib/src -I/Users/andreas/Mono/latest64/include -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent -g -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT mono-ehash.lo -MD -MP -MF .deps/mono-ehash.Tpo -c ../../../../mono/mono/utils/mono-ehash.c  -fno-common -DPIC -o .libs/mono-ehash.o
In file included from ../../../../mono/mono/utils/mono-ehash.c:31:
../../../../mono/eglib/src/glib.h:18:26: error: eglib-config.h: No such file or directory
[...]

The attached patch fixes this by adding the corresponding build dir to the search path. May I commit?
Comment 1 Forgotten User vxPDddArjq 2008-01-05 16:43:44 UTC
This is ok to check in.
Comment 2 Andreas Färber 2008-01-05 17:17:06 UTC
Thanks, fixed in r92304.