From owner-freebsd-questions@FreeBSD.ORG Mon Mar 24 08:00:51 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A67808B0 for ; Mon, 24 Mar 2014 08:00:51 +0000 (UTC) Received: from mail-ee0-x22d.google.com (mail-ee0-x22d.google.com [IPv6:2a00:1450:4013:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 44A82F73 for ; Mon, 24 Mar 2014 08:00:51 +0000 (UTC) Received: by mail-ee0-f45.google.com with SMTP id d17so4070668eek.18 for ; Mon, 24 Mar 2014 01:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hJqEhuVN1+xG6S04ZZbdaxU/OnnG2yiD00I8fa3BV1U=; b=pDGlxErX3R12mPVOy6kaT2RMWdXIkiaZUQ2xYQLcxtmXG0udTWK3/a6LqvK0yeh/dp AoAfBQVhJgMa4QCH9NVdroQMqPZ1dvwbL3ICf/pzNCKJIULN1TV/K2qkcJtrHTY6oKvH iTxT+4QeUhTiGiEGXtcT2OmbA7VeXL6UUeFMH9ClGz0bn+OXgi8BVdjWQrEM60Q40kO+ KiRVbEOgCwgETZ3p6nXm8j/QEHH2yhl/0Ee5O8NQzGxYWCoDAuS8hTgSmalazWM5Hsll x1nF9AthgGF00FNAFfgqHdUjNZnJQPwwgo1xqBbu2VB+/nCY9rdRNmwUEXZJzq6DNaTY wvxg== MIME-Version: 1.0 X-Received: by 10.14.102.6 with SMTP id c6mr1443171eeg.96.1395648049691; Mon, 24 Mar 2014 01:00:49 -0700 (PDT) Received: by 10.14.101.76 with HTTP; Mon, 24 Mar 2014 01:00:49 -0700 (PDT) Date: Mon, 24 Mar 2014 09:00:49 +0100 Message-ID: Subject: Static libraries From: Oriental Sensation To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2014 08:00:51 -0000 Hello, (I hope this is the right list to post to. If not, I apologize in advance and kindly let me know where to direct the question, thanks.) I installed FreeBSD 10 few days ago, went ahead to recompile world with a custom kernel. All went great. Then I downloaded PHP and compiled it also, requesting to compile also OPCache, and all went great. When I installed PHP, though, I found out that instead of the usual opcache.so file, I found a libopcache.a file. I then went ahead and generated a .so file from that, it went fine. Afterwards, I went ahead and compiled few more PHP extensions only to find out that all of them were linked statically and produced *.a files. So I am reckoning that this is a system-wide setting which I either accidentally turned on or starting with FreeBSD 10, this is the default behavior. To summarize: Why is it that the default target for compiling/linking is static libraries and not shared ones? The following might shed light: /etc/src.conf: WITHOUT_BSNMP="YES" WITHOUT_CTM="YES" WITHOUT_DICT="YES" WITHOUT_EXAMPLES="YES" WITHOUT_FLOPPY="YES" WITHOUT_GAMES="YES" WITHOUT_GCOV="YES" WITHOUT_IPFILTER="YES" WITHOUT_IPX="YES" WITHOUT_LIB32="YES" WITHOUT_LOCALES="YES" WITHOUT_LOCATE="YES" WITHOUT_LPR="YES" WITHOUT_NDIS="YES" WITHOUT_NETGRAPH="YES" WITHOUT_NIS="YES" WITHOUT_NS_CACHING="YES" WITHOUT_PF="YES" WITHOUT_PROFILE="YES" WITHOUT_RCS="YES" WITHOUT_RESCUE="YES" WITHOUT_ROUTED="YES" WITHOUT_SENDMAIL="YES" WITHOUT_SHAREDOCS="YES" WITHOUT_SYSINSTALL="YES" WITHOUT_WIRELESS="YES" WITHOUT_ZFS="YES" /etc/make.conf: CPUTYPE?=nocona DOC_LANG=en_US.ISO8859-1 DISABLE_SIZE=yes NO_PROFILE=yes WITH_OPENSSL_BASE=yes CC=clang CXX=clang++ CPP=clang-cpp WITH_PIC=yes CFLAGS=-fPIC CPPFLAGS=-fPIC -DPIC CXXFLAGS=-fPIC -DPIC NO_WERROR= WERROR= Thanks in advance for your help, folks. /OS