Complete the link fix, all shared libs are now linked against the app that loads

them, so the timer symbols are resolved.
This commit is contained in:
duncan%be.com 1999-07-24 12:25:16 +00:00
parent 5923d98342
commit cae606a8be
2 changed files with 40 additions and 2 deletions

38
config/beos/appstub.sh Normal file
View File

@ -0,0 +1,38 @@
#!/bin/sh
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
# this is a hackish script used from config/rules.mk under BeOS
# to generate a stub for a library if it doesn't exist yet
apppath=$1
echo ${apppath}/_APP_
# switch to executable output path
cd ${apppath}
# check if the app stub exists
if test -e _APP_ ; then
exit ;
fi
# generate stub
echo "main(int, char**){return(0);}">_APP_.c
c++ _APP_.c
rm _APP_.c

View File

@ -466,8 +466,8 @@ ifdef SHARED_LIBRARY
# BeOS specific section: link against dependant shared libs
#
BEOS_LIB_LIST = $(shell cat $(topsrcdir)/dependencies.beos/$(LIBRARY_NAME).dependencies)
BEOS_LINK_LIBS = $(foreach lib,$(BEOS_LIB_LIST),$(shell $(topsrcdir)/config/beos/checklib.sh $(DIST)/bin $(lib)))
LDFLAGS += -L$(DIST)/bin $(BEOS_LINK_LIBS) $(NSPR_LIBS) $(DIST)/bin/_APP_
BEOS_LINK_LIBS = $(foreach lib,$(BEOS_LIB_LIST),$(shell $(topsrcdir)/config/beos/checklib.sh $(DIST)/bin $(lib))) $(shell $(topsrcdir)/config/beos/appstub.sh $(DIST)/bin)
LDFLAGS += -L$(DIST)/bin $(BEOS_LINK_LIBS) $(NSPR_LIBS)
EXTRA_DSO_LDOPTS += -L$(DIST)/bin $(BEOS_LINK_LIBS) $(NSPR_LIBS) $(DIST)/bin/_APP_
endif
endif