From owner-freebsd-current@freebsd.org Sat Aug 18 13:26:06 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3D7B106D0EE; Sat, 18 Aug 2018 13:26:05 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 53E7491EAA; Sat, 18 Aug 2018 13:26:05 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id s7-v6so14985238itb.4; Sat, 18 Aug 2018 06:26:05 -0700 (PDT) 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=/TadZbk+C82NXSbF2uIJldlDDf7OredmFiuLczT6UNA=; b=WpzTDtFpWdKeZ6w+/iSBsNpMkaDATG1/7k/uHGfXo3eqgVlYEps/zzZri0+Swk9VeF pRQc0if7g9ga6TAXf/dvnj7ZiLjBKsg1Et7ENciCDQ1UHyEH20kMjrJK7ZDBdQQ50Emq Iqc3B4dHGnLvRNeHSSTjvB40kprjYlzvoAMAttQ2Fe4vSs/Np4UHWCCBoRdioUuroRjL yiXRXN4i7fbA+/57FrKorJ7psUoceYThq8Td6JwyVPaYn853+F3W37qDRU4GtXWoiCca QHSJW5YzZquH22r8ZNIf6vFN/5tDBsIS7CG2apgqHczCfMHcHso85rf6HxFN1vi6Qxt8 OGcw== 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=/TadZbk+C82NXSbF2uIJldlDDf7OredmFiuLczT6UNA=; b=Y8fkQvwQYXVYEtHX4rw9QlljD7kSOF5BO6Xkf7SLmCpnGaI/lVcbbCw/qThHmMkM2x WTkuak0JYb4ZW6q8FRSFhQPFy8vcZj0LhsXdPVYMKYXMrVhgoUcOrSCPbJXVr3xalIut uiSguydVSdGgH2yuGDshXtywsQIkkX/e9RGAQN8XXTDGOaD5ozMt4uO8o9a1UvsM2CSF vLbxrqrE9BQM1Iw4AGNOHgjGcvR4EL6W8Cauet3XRHoWhCYdVK+9VtMyQ6DavhdC1EOP cktebHTaDj284KC99wWK0hV1t8suubqRxGHxm9+eddoCpW/CMyN1CWDENRQDbzMCmQqm ct1w== X-Gm-Message-State: AOUpUlGZXL0VpzCSW7bEKyCUkBCUyqb+JT+zVxT1IoyaQfW8TwEaJQlY /Uq7Vcp0Xf6nVL4Ng4odROCHk1LQxwp7lxogu/YloQJN X-Google-Smtp-Source: AA+uWPxVUKw5i+09nm+XeY1EEObmn6nM5qxDncHYTDEy+cXjEvd3dsJhFLlmd6pNEvUqtZ07PxLBAweHZ1k6oTqs9CM= X-Received: by 2002:a24:7c4a:: with SMTP id a71-v6mr21105375itd.69.1534598764492; Sat, 18 Aug 2018 06:26:04 -0700 (PDT) MIME-Version: 1.0 From: blubee blubeeme Date: Sat, 18 Aug 2018 21:25:53 +0800 Message-ID: Subject: Executables with [ -def __linux__ ] To: FreeBSD current , FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Sat, 18 Aug 2018 13:26:06 -0000 This is going out to both current and ports in hopes someone can offer some guidance on this issue. I'm porting some code that seems to want to have -def __linux__ when I run the executable with verbose output, take a look below -------------------------------------------------------------- -opt 0 -terse 1 -inform warn -nohpf -nostatic -inform warn -x 19 0x400000 -quad -x 68 0x1 -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp px -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __x86_64 -def __x86_64__ -def __LONG_MAX__=9223372036854775807L -def __SIZE_TYPE__=unsigned long int -def __PTRDIFF_TYPE__=long int -def __THROW= -def __extension__= -def __amd_64__amd64__ -def __k8 -def __k8__ -def __PGLLVM__ -freeform -vect 48 -y 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -stbfile test-276576.stb -modexport test-276576.cmod -modindex test-276576.cmdx -output test-276576.ilm ---------------------------------------------------------------- As you can see from above there's some -def linux, def __linux, etc.. FreeBSD isn't Linux and I'd like to better understand where these things are being set, it's a cmake project and I've grepped through a lot of the sources and can't really find where these flags are coming from. Any tips on finding where they are coming from and fixing them to reflect the correct platform information? Best, Owen