[uClibc]OpenSSH anyone?

Erik Andersen andersen at codepoet.org
Sun Feb 10 03:59:41 UTC 2002


On Sat Feb 09, 2002 at 05:15:41PM -0800, ken restivo wrote:
> I have had some fun today trying to get OpenSSH to compile
> under uClibc. OpenSSL compiled no prob, but OpenSSH has been
> ugly.
> 
> I'm part the way there: first I had to replace config.sub with
> a script that just returns whatever you type into it...
> config.sub apparently refuses to accept "arm-uclibc" as a
> target type.
> 
> Then, I had to build zlib, and perpetrate evil hacks on its
> configure script-- it had they system's "gcc" and "ld" hard
> coded in, which I had to replace with "${CC}" and "${LD}".

This is what I use to build zlib.  No makefile hacking required:

    BASE_DIR=${shell pwd}
    STAGING_DIR=$(BASE_DIR)/staging_dir
    TARGET_CC=$(STAGING_DIR)/bin/gcc
    TARGET_PATH=$(STAGING_DIR)/usr/bin:$(STAGING_DIR)/bin:/bin:/sbin:/usr/bin:/usr/sbin

    (cd $(ZLIB_DIR); env PATH="$(TARGET_PATH)" \
    ./configure --shared --prefix=/usr --exec_prefix=$(STAGING_DIR)/usr/bin \
    --libdir=$(STAGING_DIR)/lib --includedir=$(STAGING_DIR)/include); \
    env PATH="$(TARGET_PATH)" $(MAKE) CC="$(TARGET_CC)" \
    CFLAGS="-Os " prefix=/ -C $(ZLIB_DIR) all libz.a; \

    cp -a $(ZLIB_DIR)/libz.a $(STAGING_DIR)/lib; \
    cp -a $(ZLIB_DIR)/zlib.h $(STAGING_DIR)/include; \
    cp -a $(ZLIB_DIR)/zconf.h $(STAGING_DIR)/include; \
    cp -a $(ZLIB_DIR)/libz.so* $(STAGING_DIR)/lib; \
    (cd $(STAGING_DIR)/lib; ln -fs libz.so.1.1.3 libz.so.1); \

Havn't tried OpenSSL or OpenSSH personally,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20020209/b589bb96/attachment.pgp 


More information about the uClibc mailing list