From owner-freebsd-hackers Thu Apr 16 14:27:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA09847 for freebsd-hackers-outgoing; Thu, 16 Apr 1998 14:27:39 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from peedub.muc.de (newpc.muc.ditec.de [194.120.126.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA09365; Thu, 16 Apr 1998 21:26:23 GMT (envelope-from garyj@peedub.muc.de) Received: from peedub.muc.de (localhost [127.0.0.1]) by peedub.muc.de (8.8.8/8.6.9) with ESMTP id XAA00706; Thu, 16 Apr 1998 23:26:06 +0200 (CEST) Message-Id: <199804162126.XAA00706@peedub.muc.de> X-Mailer: exmh version 2.0.1 12/23/97 To: tarkhil@asteroid.svib.ru cc: hackers@FreeBSD.ORG, mozilla@FreeBSD.ORG Subject: Re: Building current qt with shared library Reply-To: Gary Jennejohn In-reply-to: Your message of "Thu, 16 Apr 1998 23:13:50 +0400." <199804161913.XAA16353@minas-tirith.pol.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 16 Apr 1998 23:26:05 +0200 From: Gary Jennejohn Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alex Povolotsky writes: >Hello! > >Did anyone build current snapshot of QT on current FreeBSD? It doesn't build >out-of-the-box, and I don't know internals of dynamic lincing enough :-( > I made it a few days ago. Try using this freebsd-gcc-shared instead of the one in the distribution. # Compiling SYSCONF_CC = c++ -pipe # Compiling with support libraries SYSCONF_CFLAGS_X11 = -I/usr/X11R6/include SYSCONF_CFLAGS_QT = -I$(QTDIR)/include -I/usr/X11R6/include SYSCONF_CFLAGS_OPENGL = -I/usr/X11R6/include # Linking with support libraries # X11 SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib SYSCONF_LIBS_X11 = -lX11 # Qt, Qt+OpenGL SYSCONF_LFLAGS_QT = -L$(QTDIR)/lib SYSCONF_LIBS_QT = -lqt SYSCONF_LIBS_QT_OPENGL = -lqgl # OpenGL SYSCONF_LFLAGS_OPENGL = -L/usr/X11R6/lib SYSCONF_LIBS_OPENGL = -lMesaGL -lMesaGLU -lXmu -lXext -lm # Linking applications SYSCONF_LINK = gcc SYSCONF_LFLAGS = SYSCONF_LIBS = # Meta-object compiler SYSCONF_MOC = moc # Compiling application source SYSCONF_CFLAGS = -O2 -fno-strength-reduce # Compiling library source SYSCONF_CFLAGS_LIB = -O2 -fno-strength-reduce -fPIC # Compiling shared-object source SYSCONF_CFLAGS_SHOBJ = -O2 -fno-strength-reduce -fPIC # Linking libraries # - Build the $(TARGET) library, eg. lib$(TARGET).a # - Place target in $(DESTDIR) - which has a trailing / # - May need to incorporate $(VER_MAJ) and $(VER_MIN) for shared libraries. # SYSCONF_LINK_SHLIB = ld -Bshareable SYSCONF_LINK_TARGET = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN) SYSCONF_LINK_LIB = $(SYSCONF_LINK_SHLIB) $(LFLAGS) -o $(SYSCONF_LINK_TARGET) `lorder /usr/lib/c++rt0.o $(OBJECTS) $(OBJMOC) | tsort` $(LIBS); \ mv $(SYSCONF_LINK_TARGET) $(DESTDIR); \ cd $(DESTDIR); \ rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \ ln -s $(SYSCONF_LINK_TARGET) lib$(TARGET).so; \ ln -s $(SYSCONF_LINK_TARGET) lib$(TARGET).so.$(VER_MAJ) --- Gary Jennejohn Home - garyj@muc.de Work - garyj@fkr.dec.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message