We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 289

Summary: Install fails when builddir != sourcedir
Product: SDL Reporter: Maarten ter Huurne <maarten>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.11   
Hardware: All   
OS: All   

Description Maarten ter Huurne 2006-07-31 16:34:13 UTC
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 \