[maemo-developers] [maemo-developers] Help! - how to static link single library
From: Steven Hill steveh at shscientific.comDate: Tue Jul 18 23:32:46 EEST 2006
- Previous message: [maemo-developers] Modifying the Root Filesystem
- Next message: [maemo-developers] Maemo 2.0 bug in /usr/include/linux/unistd.h
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello:
Could someone please help me out - I am using autogen.sh to compile and
link a project - here is a listing:
#!/bin/sh
set -x
glib-gettextize --copy --force
libtoolize --automake
intltoolize --copy --force --automake
aclocal-1.7
autoconf
autoheader
automake-1.7 --add-missing --foreign
The input files are makefile.am and configure.ac (they are attached).
The project links in several libraries dynamically. I would like to
link the SQLITE library statically - how would I modify the input files
to link SQLITE statically?
Thanks
Steve Hill
-------------- next part --------------
AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(LoginApp, `date +%Y%m%d`)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_HEADER_STDC
CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wmissing-prototypes -Wmissing-declarations"
OSSI_TARGET_BOARD=`echo $OSSI_TARGET_BOARD`
AC_SUBST(OSSI_TARGET_BOARD)
PKG_CHECK_MODULES(HILDON, hildon-libs >= 0.9.50 hildon-fm libossohelp)
AC_SUBST(HILDON_LIBS)
AC_SUBST(HILDON_CFLAGS)
PKG_CHECK_MODULES(OSSO,libosso >= 0.8.4 gnome-vfs-2.0 >= 2.2 gnome-vfs-module-2.0 >= 2.2)
AC_SUBST(OSSO_LIBS)
AC_SUBST(OSSO_CFLAGS)
PKG_CHECK_MODULES(OSSOIC, osso-ic)
AC_SUBST(OSSOIC_LIBS)
AC_SUBST(OSSOIC_CFLAGS)
PKG_CHECK_MODULES(SQLITE, sqlite)
AC_SUBST(SQLITE_LIBS)
AC_SUBST(SQLITE_CFLAGS)
PKG_CHECK_MODULES(LIBXML, libxml-2.0)
AC_SUBST(LIBXML_LIBS)
AC_SUBST(LIBXML_CFLAGS)
PKG_CHECK_MODULES(OSSOSETTINGS, osso-af-settings >= 0.8.4)
hildondesktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
hildoniconthemedir=$HOME/.icons/hicolor
AC_SUBST(desktopentrydir)
AC_SUBST(hildondesktopentrydir)
AC_SUBST(hildoniconthemedir)
AC_OUTPUT(
Makefile \
data/Makefile \
src/Makefile
)
-------------- next part --------------
#
# This file is part of loginapp
#
# Copyright (C) 2006 SH Scientific Systems Ltd.
#
# This software is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this software; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
#
EXTRA_DIST = \
autogen.sh \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
debian/loginapp.links \
debian/copyright \
debian/control \
debian/rules
SUBDIRS = src data
INCLUDES = $(DEPS_CFLAGS)
deb: dist
-mkdir $(top_builddir)/debian-build
cd $(top_builddir)/debian-build && tar zxf ../$(top_builddir)/$(PACKAGE)-$(VERSION).tar.gz
cd $(top_builddir)/debian-build/$(PACKAGE)-$(VERSION) && dpkg-buildpackage -rfakeroot
-rm -rf $(top_builddir)/debian-build/$(PACKAGE)-$(VERSION)
- Previous message: [maemo-developers] Modifying the Root Filesystem
- Next message: [maemo-developers] Maemo 2.0 bug in /usr/include/linux/unistd.h
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
