~ chicken-core (chicken-5) 37a788ce764aa93bc459b883bb1c350644704f9d


commit 37a788ce764aa93bc459b883bb1c350644704f9d
Author:     Peter Bex <peter.bex@xs4all.nl>
AuthorDate: Mon Nov 25 20:04:05 2013 +0100
Commit:     Moritz Heidkamp <moritz@twoticketsplease.de>
CommitDate: Sun Dec 1 15:20:55 2013 +0100

    Ignore user's umask: set proper permissions on directories while installing.
    
    Thanks to David Ward for this patch and John J Foerch for reporting the bug.
    
    Signed-off-by: Moritz Heidkamp <moritz@twoticketsplease.de>

diff --git a/defaults.make b/defaults.make
index ac629138..e19c2648 100644
--- a/defaults.make
+++ b/defaults.make
@@ -109,7 +109,7 @@ INSTALL_PROGRAM ?= xcopy
 MAKEDIR_COMMAND ?= -mkdir
 else
 INSTALL_PROGRAM ?= install
-MAKEDIR_COMMAND ?= mkdir
+MAKEDIR_COMMAND ?= install
 endif
 POSTINSTALL_STATIC_LIBRARY ?= true
 POSTINSTALL_PROGRAM ?= true
@@ -198,7 +198,7 @@ INSTALL_PROGRAM_SHARED_LIBRARY_OPTIONS ?= -m755
 INSTALL_PROGRAM_STATIC_LIBRARY_OPTIONS ?= -m644
 INSTALL_PROGRAM_EXECUTABLE_OPTIONS ?= -m755
 INSTALL_PROGRAM_FILE_OPTIONS ?= -m644
-MAKEDIR_COMMAND_OPTIONS ?= -p
+MAKEDIR_COMMAND_OPTIONS ?= -d -m755
 endif
 ASSEMBLER_OPTIONS ?= $(C_COMPILER_OPTIONS)
 ASSEMBLER_OUTPUT_OPTION ?= -o
Trap