Skip to content

Commit 6669e8c

Browse files
committed
Fall back to previous modules script and just use existing variables.
1 parent ffcf742 commit 6669e8c

File tree

4 files changed

+11
-40
lines changed

4 files changed

+11
-40
lines changed

tme-modules.sh.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ for num; do
2727
else
2828
if test $num = "tme_host_${tme_host}.la"; then
2929
echo "tme_host_${tme_host}=\${top_builddir}/${subdir}" >> $topdir/tme-hosts.txt
30+
host=yes
3031
break
3132
fi
3233
fi
3334
done
3435
if test $num = $2; then continue; fi
35-
echo -n "-dlopen \${top_builddir}/${subdir}/$num " >> $topdir/tme-preopen.txt
36-
echo "${subdir}/$num" >> $topdir/tme-modules.txt
36+
if test "x${host}" = x; then
37+
echo -n "-dlopen \${top_builddir}/${subdir}/$num " >> $topdir/tme-preopen.txt
38+
fi
3739
done

tme-modules.txt

Lines changed: 0 additions & 33 deletions
This file was deleted.

tme-preopen.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tme_preopen=-dlopen ${top_builddir}/generic/bus/tme_generic.la -dlopen ${top_builddir}/ic/m68k/tme_ic_m68k.la -dlopen ${top_builddir}/ic/sparc/tme_ic_sparc.la -dlopen ${top_builddir}/ic/stp22xx/tme_ic_stp22xx.la -dlopen ${top_builddir}/ic/tme_ic_am9513.la -dlopen ${top_builddir}/ic/tme_ic_z8530.la -dlopen ${top_builddir}/ic/tme_ic_i825x6.la -dlopen ${top_builddir}/ic/tme_ic_isil7170.la -dlopen ${top_builddir}/ic/tme_ic_ncr5380.la -dlopen ${top_builddir}/ic/tme_ic_ncr53c9x.la -dlopen ${top_builddir}/ic/tme_ic_ncr89c105.la -dlopen ${top_builddir}/ic/tme_ic_stp2024.la -dlopen ${top_builddir}/ic/tme_ic_ad184x.la -dlopen ${top_builddir}/ic/tme_ic_mk48txx.la -dlopen ${top_builddir}/ic/tme_ic_nec765.la -dlopen ${top_builddir}/ic/tme_ic_am7930.la -dlopen ${top_builddir}/ic/tme_ic_am7990.la -dlopen ${top_builddir}/ic/tme_ic_lsi64854.la -dlopen ${top_builddir}/ic/tme_ic_mm58167.la -dlopen ${top_builddir}/machine/sun2/tme_machine_sun2.la -dlopen ${top_builddir}/machine/sun3/tme_machine_sun3.la -dlopen ${top_builddir}/machine/sun4/tme_machine_sun4.la -dlopen ${top_builddir}/host/display/gtk/tme_host_gtk.la -dlopen ${top_builddir}/host/display/rfb/tme_host_rfb.la -dlopen ${top_builddir}/host/display/sdl/tme_host_sdl.la -dlopen ${top_builddir}/host/eth/tun/tme_host_tun.la -dlopen ${top_builddir}/host/eth/bsd/tme_host_bsd.la -dlopen ${top_builddir}/host/eth/openvpn/tme_host_openvpn.la -dlopen ${top_builddir}/host/tme_host_posix.la -dlopen ${top_builddir}/bus/multibus/tme_bus_multibus.la -dlopen ${top_builddir}/bus/sbus/tme_bus_sbus.la -dlopen ${top_builddir}/serial/tme_serial_kb.la -dlopen ${top_builddir}/scsi/tme_scsi.la
1+
tme_preopen=-dlopen ${top_builddir}/generic/bus/tme_generic.la -dlopen ${top_builddir}/ic/m68k/tme_ic_m68k.la -dlopen ${top_builddir}/ic/sparc/tme_ic_sparc.la -dlopen ${top_builddir}/ic/stp22xx/tme_ic_stp22xx.la -dlopen ${top_builddir}/ic/tme_ic_am9513.la -dlopen ${top_builddir}/ic/tme_ic_z8530.la -dlopen ${top_builddir}/ic/tme_ic_i825x6.la -dlopen ${top_builddir}/ic/tme_ic_isil7170.la -dlopen ${top_builddir}/ic/tme_ic_ncr5380.la -dlopen ${top_builddir}/ic/tme_ic_ncr53c9x.la -dlopen ${top_builddir}/ic/tme_ic_ncr89c105.la -dlopen ${top_builddir}/ic/tme_ic_stp2024.la -dlopen ${top_builddir}/ic/tme_ic_ad184x.la -dlopen ${top_builddir}/ic/tme_ic_mk48txx.la -dlopen ${top_builddir}/ic/tme_ic_nec765.la -dlopen ${top_builddir}/ic/tme_ic_am7930.la -dlopen ${top_builddir}/ic/tme_ic_am7990.la -dlopen ${top_builddir}/ic/tme_ic_lsi64854.la -dlopen ${top_builddir}/ic/tme_ic_mm58167.la -dlopen ${top_builddir}/machine/sun2/tme_machine_sun2.la -dlopen ${top_builddir}/machine/sun3/tme_machine_sun3.la -dlopen ${top_builddir}/machine/sun4/tme_machine_sun4.la -dlopen ${top_builddir}/host/tme_host_posix.la -dlopen ${top_builddir}/bus/multibus/tme_bus_multibus.la -dlopen ${top_builddir}/bus/sbus/tme_bus_sbus.la -dlopen ${top_builddir}/serial/tme_serial_kb.la -dlopen ${top_builddir}/scsi/tme_scsi.la

tmesh/Makefile.am

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ libtmesh_la_SOURCES = \
1515
libtmesh_la_LIBADD = $(top_builddir)/libtme/libtme.la
1616

1717
bin_PROGRAMS = tmesh
18-
tmesh_LDADD = libtmesh.la $(tme_preopen) @TME_HOST_LIBS@
18+
tmesh_LDADD = libtmesh.la $(tme_preopen) $(TME_HOST_LIBS)
1919
tmesh_LDFLAGS = -dlpreopen force -dlopen self
2020

2121
EXTRA_DIST = tmesh.sh
@@ -56,9 +56,11 @@ plugins:
5656
mkdir -p $(NME_DIR)
5757
cp -f $(top_srcdir)/tme/*.txt $(NME_DIR)
5858
# find $(top_builddir) -type f -name '*.la' -exec cp '{}' $NME_DIR ';'
59-
for mod in `cat "$(top_srcdir)/tme-modules.txt"`; do \
60-
echo $$mod ; \
61-
cp -f $(top_builddir)/$$mod $(NME_DIR) ; \
59+
for mod in $(tme_preopen) $(TME_HOST_LIBS); do \
60+
if test $$mod != -dlopen; then \
61+
echo $$mod ; \
62+
cp -f $$mod $(NME_DIR) ; \
63+
fi \
6264
done
6365
touch plugins
6466

0 commit comments

Comments
 (0)