From owner-freebsd-current@freebsd.org Thu Mar 2 11:02:35 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4BBBFCF5A2B for ; Thu, 2 Mar 2017 11:02:35 +0000 (UTC) (envelope-from mingorrubioer@gmail.com) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0BF3AAC for ; Thu, 2 Mar 2017 11:02:35 +0000 (UTC) (envelope-from mingorrubioer@gmail.com) Received: by mail-qk0-x22d.google.com with SMTP id s186so116841987qkb.1 for ; Thu, 02 Mar 2017 03:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=k1Pwwv3TOH8GtpZEad8P0Ff8JZAexVEQLB86kzZwUIA=; b=FPWM7jfwAS8nPdh8WHpP0VARN2Dm+iT+ojC+rFbaKwYAA1dKATdEFIbOMWLcuNCXS7 KNaYxFrq3MNr2qEZ0KOaOeOSHWb4+IKg+Vo+SKdkkBRS/TNISV0JcNqH8bP2X7jfwomC 7Jnf3ORF5zT8xoShGFGzonY6IENV+0wJCWcyR9Z2zYwWJIv4LlMPdq4t/v8T0ruLnNt8 U4K+MYsAuyCcrSIDMYKo2Ftisgc8h7dTIOYgQqJhvfr8jsquw0s51B/i9L6RQ/JSdkPj BQgVdpKT4EHimSwVhb5ucVWBa4dtO/f3xhO+O/t05IG3okCvFHh1OvisXVPbPaJuhosv BE7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=k1Pwwv3TOH8GtpZEad8P0Ff8JZAexVEQLB86kzZwUIA=; b=AsPkNAHHbuSsNVolMjwBTOPTgjtpE7o8s0gDGIcV9zLtsbkNr5lKR775E+a8CD0bSd 8Wr+GAsGeP7exrvj+z0dX0FysXoykWUBUKtBBLq4AUc/yUuj+LtxXorU5YhejpqcX9ql uLhuuwQ5LBDjzO6G1+3J6gPEb08tjgyOYS9PQkWt+pDGl7l3iWEkzq0W/jEGoYpMDuZx DbnK0wc5ewAKiVQZHkuf3Q6Aw8hPt74hWMQ1pYbbCyqtrFSVj1ZtXbLdGPAVZZEsLFJm 0IuBXqodysyL2T74I+zcJUHLYrnscTRCj/ZvWTx9ekeOIotCmhqxL09oxfKktk231Zdz BS6Q== X-Gm-Message-State: AMke39mZ42vMiDbKkknvJXYy8IgIuDAvCzcR9N9Ffg43Bhqi15ioECWnjztot9NGLf2rpd3N1fZZboUPhTsS5A== X-Received: by 10.200.38.72 with SMTP id v8mr16947863qtv.27.1488452554026; Thu, 02 Mar 2017 03:02:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.31.72 with HTTP; Thu, 2 Mar 2017 03:02:13 -0800 (PST) From: Mingo Rrubioer Date: Thu, 2 Mar 2017 14:02:13 +0300 Message-ID: Subject: CFLAGS for certain ports To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2017 11:02:35 -0000 Hello, New to FreeBSD and first post. If I got the wrong mailing list, just let me know where to ask my questions. I would like to see how well FreeBSD does as a workstation OS in the HPC world due to its stability and reliability, as well as LLVM/clang. I would like to know if FreeBSD has something similar to Gentoo's /etc/portage/make.conf file and /etc/portage/package.use/* files in order to compile certain ports with certain compiler flags. Currently I mainly use CFLAGS="-O2 -pipe -mtune=native" for most of the applications, so nothing really aggressive (in general). I've been reading through some FreeBSD docs (Handbook and ports documentation) but haven't found the answer (maybe looking in the wrong place). Regarding LLVM/clang, I've been reading the documentation and found these flags: -arch=, -march=, -mcpu=, --target=, target-cpu . I'm not quite sure which one would be the one to use. In case someone wants to know, my initial play/test machine has this processor: CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz (3600.11-MHz K8-class CPU) Origin="GenuineIntel" Id=0x206d7 Family=0x6 Model=0x2d Stepping=7 And I'm currently running: 11.0-RELEASE-p8. So I imagine I should use something like CFLAGS+= -march=corei7-avx -march=sandybridge -target-cpu. Is that correct? Currently all our deployed workstations are Intel with NVIDIA Quadro graphics cards. My target is not to migrate everything, I just want to know if FreeBSD would be suitable and where. As I mentioned, this would be for specific scientific applications, not system wide. Thanks !!