From 5e1a84ab74d5e97582427f016f291a8c11e66f99 Mon Sep 17 00:00:00 2001 From: jutteau Date: Fri, 11 May 2007 18:10:19 +0000 Subject: Completion du script de mise à jour de la pc-104 : * Ajout des sources de busybox dans ./conf/busybox/ * Ajout d'un fichier réclamé par les script dans ./conf/busybox.links --- i/pc104/initrd/conf/busybox/scripts/trylink | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 i/pc104/initrd/conf/busybox/scripts/trylink (limited to 'i/pc104/initrd/conf/busybox/scripts/trylink') diff --git a/i/pc104/initrd/conf/busybox/scripts/trylink b/i/pc104/initrd/conf/busybox/scripts/trylink new file mode 100755 index 0000000..52931b0 --- /dev/null +++ b/i/pc104/initrd/conf/busybox/scripts/trylink @@ -0,0 +1,18 @@ +#!/bin/sh + +debug=false + +try() { + added="$1" + shift + $debug && echo "Trying: $* $added" + "$@" $added >busybox.map 2>busybox_ld.err \ + && { rm busybox_ld.err; exit 0; } +} + +try "" "$@" +try "-lm" "$@" +try "-lcrypt" "$@" +try "-Wl,--start-group -lcrypt -lm -Wl,--end-group" "$@" +# It failed. Let people see the error messages +cat busybox_ld.err -- cgit v1.2.3