Browse Source

ucspi-unix: Fixed cross-compilation by using -lbg-sysdeps instead of -lsysdeps

./load unixclient env.o utoa.o `cat socket.lib`
.../usr/bglibs/lib/libsysdeps.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make: *** [unixclient] Error 1

they are symlinked, but -lbg-sysdeps pass and -lsysdeps doesn't
user/amery/cross
Alejandro Mery 17 years ago
parent
commit
3201bdbf1f
  1. 30
      network/ucspi-unix/bglibs.patch.cross
  2. 2
      network/ucspi-unix/cross-conf.patch.cross

30
network/ucspi-unix/bglibs.patch.cross

@ -0,0 +1,30 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../ucspi-unix/bglibs.patch.cross
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
when cross-compiling ucspi-unix fails because libsysdeps.a isn't indexed, but
libbg-sysdeps.a is... but they are symlinked! *weird*
--- ./Makefile.orig 2008-03-15 18:49:54.000000000 +0000
+++ ./Makefile 2008-03-15 18:50:06.000000000 +0000
@@ -63,7 +63,7 @@
load: conf-ld
( echo '#!/bin/sh';\
echo 'main="$$1"; shift';\
- echo exec `head -n 1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
+ echo exec `head -n 1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg-sysdeps;\
) >load
chmod 755 load

2
network/ucspi-unix/cross-conf.patch.cross

@ -76,7 +76,7 @@ diff -ruN ucspi-unix-0.36/Makefile ucspi-unix-0.36-cross-conf/Makefile
+host-load: conf-hostld
+ ( echo '#!/bin/sh';\
+ echo 'main="$$1"; shift';\
+ echo exec `head -1 conf-hostld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
+ echo exec `head -1 conf-hostld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg-sysdeps;\
+ ) >host-load
+ chmod 755 host-load
+

Loading…
Cancel
Save