From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by sourceware.org (Postfix) with ESMTPS id 0BA613854804 for ; Fri, 20 Nov 2020 23:56:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0BA613854804 Received: by mail-qk1-x736.google.com with SMTP id v143so10730375qkb.2 for ; Fri, 20 Nov 2020 15:56:23 -0800 (PST) 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=req891y+WMtDWoQjlYB/ieGG/GCf1eiBYTOTSWww0pw=; b=HUAhArHABDp97l7Dzz8mgh7AfPtKBL5lr3SqeC9RjVnfkkA34V1FpjnEQWEqWM0zJN AMpuFJu0BP9wKlnn8eHVmeZjMfR4xVH/R2hf4feE/vjy7mSnmiR4N1hi5L2y548f5Q+q DBkbiX87evGOtTGcGGFVrW/MWChZ7Td8Dt35LF5DMnuUGy2vTiIlqfdCZjKNpCdAX49c 88NlFv7N8rLyFzbE2+DqmQ3izLjjkVTamPJmjGMpRLqxIzdhaZjzFER3DaWMkQ0A35L5 Xut4uuOosQkwFbh9Eb3CB8lFGGH6S5ywpND3QhG33/ERGhQqBf55+tKEOi8NeVvEKaqN hbNQ== X-Gm-Message-State: AOAM5320cyjBjgBv646FL9RF/kyqgnXk3iPAc0EAInkdqUaCsMwK3ibN iSI5T0lJy8/cikGf0jnzLgDbURU0nFeDOW1NO7ndWLKFzZT2zQ== X-Google-Smtp-Source: ABdhPJzH9z51jzk2LG1C0nzuqKol2Z4ZBWCdUvpTf7KCZFp6nEwAVGgpcvR2zteyyx0KDdU4p4F0+uuaiMuQnbVHiMs= X-Received: by 2002:a37:274c:: with SMTP id n73mr18612216qkn.73.1605916582259; Fri, 20 Nov 2020 15:56:22 -0800 (PST) MIME-Version: 1.0 From: Randy Geyer Date: Fri, 20 Nov 2020 15:56:11 -0800 Message-ID: Subject: How to change the name of the libffi-3.3 generated dll/lib files on windows? To: libffi-discuss@sourceware.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libffi-discuss@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libffi-discuss mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2020 23:56:24 -0000 I have successfully build a libffi-3.3 on windows using this Configure: ./configure CC="$(shell pwd)/libffi/msvcc.sh -m64" CXX="$(shell pwd)/libffi/msvcc.sh -m64" CPP="cl -nologo -EP" CPPFLAGS="-DFFI_BUILDING_DLL" --build=x86_64-w64-cygwin --host=x86_64-w64-cygwin'; The libffi-7.dll and libffi-7.lib file are generated under pwd\libffi\x86_64-w64-cygwin\.libs. libffi-7.lib has named references to libffi-7.dll so I can't just rename the dll or our application build fails because the libffi-7.dll references in the .lib. Is there a way to have the libffi make produce ffi.dll and ffi.lib instead? so that the .lib refers to ffi.dll not libffi-7.dll. Note: I tried adding --program-transform-name='s/libffi-7/ffi/' as a Configure parameter, but that had no effect.