makelib/config-i686-pc-linux-gnu.make
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 15 Aug 2017 10:44:12 +0100
branchstx-8.0.0
changeset 169 f9f519bb10b6
parent 135 makelib/config-linux-i386.make@0325651d2b43
child 179 72cd796f3d1c
permissions -rw-r--r--
Use GNU target triplets to specify build targets. This aligns the code a little with rest of the world and makes it easier when it comes to build 3rd party libraries using autotools - one can pass the value `BUILD_TARGET` to `configure` script `--target` option.

#
# Definitions for target i686-pc-linux-gnu.
#
# based on eXept's:
#
# linux-elf/amd64_mode32: cpu: athlon64 in 32 bit mode os:linux-ELF options: +commonSymbol
#
#------------------ start of linux/amd64_mode32 ---------------------
#
# $Header: /cvs/stx/stx/configurations/linux-elf/amd64_mode32/defines,v 1.25 2016-03-17 22:32:46 stefan Exp $

include $(MAKELIB)/config-linux-gnu.make
include $(MAKELIB)/config-i686.make

COMMONSYMBOLS=+commonSymbols
SAVECOMMONSYMBOLS=+saveCommonSymbols
STCARCHOPT=+sharedLibCode -staticMethods $(COMMONSTCCONFOPT)
STC_LEXLIB=libfl/libfl_pic.a
# STC_LEXLIB=-lfl

DEFS += -DELF
DLDEFS=-DHAS_DLOPEN



AS_CC=as
AS_CC_CFLAG=
ASFLAGS=--32


# LD=ld -m elf_i386
# STC_LD=ld -m elf_i386
STC_LDFLAGS=$(CCCONFOPT) -L/usr/lib -Llib -L/usr/local/lib -L/usr/X11/lib
CLASSLIB_LD=ld -m elf_i386
LDFLAGS=$(CCCONFOPT) -Llib -L/usr/local/lib -L/usr/X11/lib -L/usr/lib \
	-Wl,-rpath,'$$ORIGIN',-rpath,'$$ORIGIN/lib',-rpath,'$$ORIGIN/../lib'
LD_REL_FLAG=-r

#OPTIONAL_DL_LIB=-ldl
#OPTIONAL_LIBDL_TARGET=libdld

TARGET_RULE_EXTENSION=_shared
O_EXT=.so
# name of object files in binary directory
BIN_O=.so

MAKE_ZLIB_ARG= -f Makefile.amd64_mode32
MAKE_BZ2LIB_ARG= -f Makefile.amd64_mode32

# We have problems with FFI as of 2008-12-01
# Remove the follwoing lines when the problems have been fixed
#FFI_OBJS=
#OPTIONAL_HAVE_FFI_ARG=
#OPTIONAL_FFI_TARGET_IN_LIBRUN=
# END FFI kludge
FFI_CFLAGS=$(CCCONFOPT)
#------------------ end of linux-elf/amd64_mode32 ---------------------
O_RULE=__STANDARD_O_RULE__
EXTRA_LIBS=-ldl -lX11 -lXext

# Following is a workaround for Debian / Ubuntu boxes.
#
ifeq ($(wildcard /usr/lib/i386-linux-gnu/libXft.so),)
ifeq ($(wildcard /usr/lib/i386-linux-gnu/libXft.so.2),/usr/lib/i386-linux-gnu/libXft.so.2)
LIB_XFT=-l:libXft.so.2 -l:libfontconfig.so.1
endif
endif