| Summary: | Install fails when builddir != sourcedir | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Maarten ter Huurne <maarten> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 1.2.11 | ||
| Hardware: | All | ||
| OS: | All | ||
I prefer to build packages outside of their source dir. This used to work with SDL 1.2.9, but fails for SDL 1.2.11. The problem is the file "sdl.pc", which is generated based on "sdl.pc.in". Since it is a generated file, it resides in the build dir, but the SDL build looks for it in the source dir. As a result, "make install" fails. After applying the patch below, "make install" works. --- SDL-1.2.11.org/Makefile.in Sun Jul 30 23:57:31 2006 +++ SDL-1.2.11/Makefile.in Sun Jul 30 23:56:01 2006 @@ -98,7 +98,7 @@ $(SHELL) $(auxdir)/mkinstalldirs $(datadir)/aclocal $(INSTALL) -m 644 $(srcdir)/sdl.m4 $(datadir)/aclocal/sdl.m4 $(SHELL) $(auxdir)/mkinstalldirs $(libdir)/pkgconfig - $(INSTALL) -m 644 $(srcdir)/sdl.pc $(libdir)/pkgconfig + $(INSTALL) -m 644 $(top_builddir)/sdl.pc $(libdir)/pkgconfig install-man: $(SHELL) $(auxdir)/mkinstalldirs $(mandir)/man3 for src in $(srcdir)/docs/man3/*.3; do \