
Author: diego Date: Sat Feb 2 14:56:45 2008 New Revision: 568 Log: Install shared library as well. Modified: src/trunk/Makefile Modified: src/trunk/Makefile ============================================================================== --- src/trunk/Makefile (original) +++ src/trunk/Makefile Sat Feb 2 14:56:45 2008 @@ -27,7 +27,7 @@ install: install-libnut install-nututils install-libnut: libnut install -d $(prefix)/lib - install -m 644 libnut/libnut.a $(prefix)/lib + install -m 644 libnut/libnut.a libnut/libnut.so $(prefix)/lib install -d $(prefix)/include install -m 644 libnut/libnut.h $(prefix)/include

On Sat, Feb 02, 2008 at 02:56:46PM +0100, diego wrote:
Author: diego Date: Sat Feb 2 14:56:45 2008 New Revision: 568
Log: Install shared library as well.
Modified: src/trunk/Makefile
Modified: src/trunk/Makefile ============================================================================== --- src/trunk/Makefile (original) +++ src/trunk/Makefile Sat Feb 2 14:56:45 2008 @@ -27,7 +27,7 @@ install: install-libnut install-nututils
install-libnut: libnut install -d $(prefix)/lib - install -m 644 libnut/libnut.a $(prefix)/lib + install -m 644 libnut/libnut.a libnut/libnut.so $(prefix)/lib
What about platforms that do not have shared libraries?!? Rich

On Sat, Feb 02, 2008 at 02:12:40PM -0500, Rich Felker wrote:
On Sat, Feb 02, 2008 at 02:56:46PM +0100, diego wrote:
Log: Install shared library as well.
--- src/trunk/Makefile (original) +++ src/trunk/Makefile Sat Feb 2 14:56:45 2008 @@ -27,7 +27,7 @@ install: install-libnut install-nututils
install-libnut: libnut install -d $(prefix)/lib - install -m 644 libnut/libnut.a $(prefix)/lib + install -m 644 libnut/libnut.a libnut/libnut.so $(prefix)/lib
What about platforms that do not have shared libraries?!?
Like your handcrafted system? Shared libraries are built by default right now, so they should be installed by default as well. Diego

On Sun, Feb 03, 2008 at 06:02:36PM +0100, Diego Biurrun wrote:
On Sat, Feb 02, 2008 at 02:12:40PM -0500, Rich Felker wrote:
On Sat, Feb 02, 2008 at 02:56:46PM +0100, diego wrote:
Log: Install shared library as well.
--- src/trunk/Makefile (original) +++ src/trunk/Makefile Sat Feb 2 14:56:45 2008 @@ -27,7 +27,7 @@ install: install-libnut install-nututils
install-libnut: libnut install -d $(prefix)/lib - install -m 644 libnut/libnut.a $(prefix)/lib + install -m 644 libnut/libnut.a libnut/libnut.so $(prefix)/lib
What about platforms that do not have shared libraries?!?
Like your handcrafted system?
Shared libraries are built by default right now, so they should be installed by default as well.
Even on OSX building and installing shared libraries is different from Linux and the free BSDs. Blatant GNUisms do not belong in a hardcoded build script. Either shared libs should be in a nondefault rule with instructions on how to build them for the supported systems, or some sort of configure script should be used to detect whether/how to build them for the target system. Rich

On Sun, Feb 03, 2008 at 01:23:40PM -0500, Rich Felker wrote:
On Sun, Feb 03, 2008 at 06:02:36PM +0100, Diego Biurrun wrote:
On Sat, Feb 02, 2008 at 02:12:40PM -0500, Rich Felker wrote:
On Sat, Feb 02, 2008 at 02:56:46PM +0100, diego wrote:
Log: Install shared library as well.
--- src/trunk/Makefile (original) +++ src/trunk/Makefile Sat Feb 2 14:56:45 2008 @@ -27,7 +27,7 @@ install: install-libnut install-nututils
install-libnut: libnut install -d $(prefix)/lib - install -m 644 libnut/libnut.a $(prefix)/lib + install -m 644 libnut/libnut.a libnut/libnut.so $(prefix)/lib
What about platforms that do not have shared libraries?!?
Like your handcrafted system?
Shared libraries are built by default right now, so they should be installed by default as well.
Even on OSX building and installing shared libraries is different from Linux and the free BSDs. Blatant GNUisms do not belong in a hardcoded build script. Either shared libs should be in a nondefault rule with instructions on how to build them for the supported systems, or some sort of configure script should be used to detect whether/how to build them for the target system.
Should be fixed by my series of commits. At some point in the future we might consider a very simple configure script. Diego
participants (3)
-
diego
-
Diego Biurrun
-
Rich Felker