Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make static on windows is not static #16590

Open
p5pRT opened this issue Jun 19, 2018 · 2 comments
Open

make static on windows is not static #16590

p5pRT opened this issue Jun 19, 2018 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 19, 2018

Migrated from rt.perl.org#133290 (status was 'new')

Searchable as RT133290$

@p5pRT
Copy link
Author

p5pRT commented Jun 19, 2018

From markus.schraeder@cryptomagic.eu

Hello Perl5porters,

"make static" via mingw and its built-in (g)make is just not creating a
static linked perl-static.exe. Attached patch fixes this.

Regards

--
Markus Schräder
Geschäftsführer

CryptoMagic GmbH, Werner-von-Siemens Str. 6, 86159 Augsburg, https://www.cryptomagic.eu
Tel​: 0821 / 217 009-0 (Durchwahl​: -11), Fax​: 0821/217 009-99
Geschäftsführer​: Markus Schräder
Sitz der Gesellschaft​: Augsburg; Registergericht​: Amtsgericht Augsburg; Registernummer​: HRB30402
USt-ID​: DE305330428, St-Nr​: 103/123/80744

@p5pRT
Copy link
Author

p5pRT commented Jun 19, 2018

From markus.schraeder@cryptomagic.eu

--- c​:\CryptoBox\perl-5.26.2\win32\GNUmakefile.org 2018-03-23 19​:34​:44 +0000
+++ c​:\CryptoBox\perl-5.26.2\win32\GNUmakefile 2018-06-19 15​:28​:31 +0000
@​@​ -1593,14 +1593,14 @​@​
  copy $(PERLEXE) $(WPERLEXE)
  $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS

$(PERLEXESTATIC)​: $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES)
ifeq ($(CCTYPE),GCC)
- $(LINK32) -mconsole -o $@​ $(BLINK_FLAGS) \
+ $(LINK32) -mconsole -o $@​ -static $(BLINK_FLAGS) \
  $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES)
else
- $(LINK32) -out​:$@​ $(BLINK_FLAGS) \
+ $(LINK32) -out​:$@​ -static $(BLINK_FLAGS) \
  $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES) $(SETARGV_OBJ)
  $(EMBED_EXE_MANI)
endif

#-------------------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants